Purpose |
Retrieve the character size for the current font in the selected graphic window. |
Syntax |
GRAPHIC CHR SIZE TO ncWidth!, ncHeight! |
Remarks |
The graphic window must first be selected with GRAPHIC ATTACH. The character size is specified in the same terms (pixels or dialog units) as the parent dialog (or world coordinates, if those were chosen with GRAPHIC SCALE). If the font is a fixed-width font, like Courier New or Lucida Console, the sizes returned are as exact as possible, given the rounding errors possible when converting from pixels to other coordinates. If the font is proportional, like Arial or Times New Roman, the width will be the average for the entire font. |
See also |
GRAPHIC ATTACH, GRAPHIC SET FONT, GRAPHIC PRINT, GRAPHIC TEXT SIZE |