Implemented By

Supported Methods

Description of Methods

GetOneLineHeight() as Integer

Returns the number of pixels from one line to the next when drawing with this font.

GetOneLineWidth(text as String, MaxWidth as Integer) as Integer

Returns the width in pixels for this particular string, when rendered with this font. Each glyph and the needed spacing between glyphs is measured. The returned number of pixels will be no larger than MaxWidth. MaxWidth is generally the amount of pixels available for rendering on this line.

GetAscent() as Integer

Returns the font ascent in pixels.

GetDescent() as Integer

Returns the font descent in pixels.

GetMaxAdvance() as Integer

Returns the font maximum advance width in pixels.