GRAPHIC TEXT SIZE statement

Purpose

Calculate the size of text to be printed.

Syntax

GRAPHIC TEXT SIZE txt$ TO nWidth!, nHeight!

Remarks

This statement calculates the total size of the printed text, based upon the current font for the graphic target.  The sizes returned are specified in the same terms (pixels or dialog units) as the parent dialog (or world coordinates, if those were chosen with GRAPHIC SCALE).

This allows you to easily calculate the appropriate print position, particularly when using a proportional font.

See also

GRAPHIC ATTACH, GRAPHIC CHR SIZE, GRAPHIC FONT, GRAPHIC PRINT