Xbasic
VisualStyle::FontMetrics Class
IN THIS PAGE
Description
Properties and methods in the FontMetrics Class.
Properties
- fontVisualStyle::Font
Font that metrics are defined for.
VisualStyle::Font Class- unitsCharacter
Units for metrics (i.e. pt,in,cm)
- averageWidthNumeric
Average width of all characters in font
- averageDigitWidthNumeric
Average width of just digit (0 though 9) characters in font
- maximumWidthNumeric
Maximum width of a character in the font.
- heightNumeric
Height of font.
- externalLeadingNumeric
External leading for font.
- AscentNumeric
Height of font ascenders.
Methods
- GetExtentHeight Method
Get the height extent (in units) of the sample text using the font.
- GetExtentWidth Method
Get the width extent (in units) of the sample text using the font.