XPRINT CHR SIZE statement

Purpose

Retrieve the character size for the current font on a host printer page.

Syntax

XPRINT CHR SIZE TO ncWidth!, ncHeight!

Remarks

The character size is specified in pixels (or world coordinates, if they have been defined with an XPRINT SCALE statement).

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.

If a host printer is not attached, error 57 is generated.

See also

XPRINT, XPRINT ATTACH, XPRINT FONT, XPRINT TEXT SIZE