Text width

From Bennu Wiki
Revision as of 02:06, 2 October 2008 by Sandman (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Definition

INT text_width ( <INT fontID> , <STRING text> )

Calculates the width in pixels of the specified text in the specified font.

Parameters

INT FontID - FontID of the font for which the width of the text will be the calculated.
STRING text - The text of which the width will be calculated.

Returns

INT : The width in pixels of the text in the font.

0 - Invalid or no text; invalid font.
>0 - The width in pixels of the text in the font.

See also