GRAPHIC TEXT SIZE statement  

Purpose

Calculate the size of text to be printed.

Syntax

GRAPHIC TEXT SIZE txt$ TO WidthVar!, HeightVar!

Function Form:

WidthVar! = GRAPHIC(TEXT.SIZE.X, txt$)

HeightVar! = GRAPHIC(TEXT.SIZE.Y, txt$)

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 Page Units.

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

See also

FONT NEW, GRAPHIC CELL, GRAPHIC CELL SIZE, GRAPHIC CHR SIZE, GRAPHIC PRINT, GRAPHIC SET FONT, GRAPHIC SCALE, GRAPHIC SET WORDWRAP, GRAPHIC SET WRAP, GRAPHIC SPLIT