TypefaceFunctionsGetTypefaceDimension

Typeface

File formatFunctions
DisplayTypefaceGetTypefaceDimensionGetTypefaceHeightGetTypefaceWidthLoadTypefaceSetTypefaceAlignmentSetTypefaceColorSetTypefaceItalicSetTypefaceKerningSetTypefaceSizeSetTypefaceSpacing

GetTypefaceDimensionFUNCTION

Description

Gets the output dimension (width, height and lines) of the given text and typeface. The dimension is calculated without transformations, except the resizing.

Syntax

Lines.i = GetTypefaceDimension( Typeface.i, *Character, [*Width.Float, *Height.Float [, Size.f]] )

Parameters

Typeface The number of the typeface.
*Character A valid address to a string (array of characters).
*Width An address to a float to save the calculated width.
*Height An address to a float to save the calculated height.

Return value

The count of lines.

See also

Union Bytes | Login