GRAPHIC CHR SIZE statement

Purpose | Retrieve the character size on the Graphic Target.
Syntax | GRAPHIC CHR SIZE To WidthVar!, HeightVar! Function Form: WidthVar! = GRAPHIC(Chr.Size.X) HeightVar! = GRAPHIC(Chr.Size.Y)

Remarks

GRAPHIC CHR SIZE retrieves the size of one character, for the current font, on the attached graphic target. The returned character size is specified in Page Units. The height value is the actual size of the displayed character, without including external leading (if any) for this particular font.

If the font is a fixed-width font, like Courier New or Lucida Console,the sizes returned are as exact as possible, given the fractional rounding approximations necessary for some scaled units. If the font is proportional, like Arial or Times New Roman, the width will be the average size for the entire font.

External leading is the vertical distance from the bottom of one character to the top of the character below it. This value is specified by the font in use. It may vary from zero to a larger value, depending upon the font and point size. To retrieve the total row height including external leading, use GRAPHIC CELL SIZE instead.

See also | GRAPHIC ATTACH, GRAPHIC CELL, GRAPHIC CELL SIZE, GRAPHIC SET FONT, GRAPHIC PRINT, GRAPHIC TEXT SIZE