Class FontManager

Base class for font managers. Provides access to available fonts

class FontManager

Static properties

TypeNameDescription
int
defaultFontSize[get, set] Default font size for application, in device-independent pixels.
double
fontGamma[get, set] Font gamma (1.0 is neutral, < 1.0 makes glyphs lighter, >1.0 makes glyphs bolder)
hintingMode[get, set] Current hinting mode (normal, autoHint, disabled)
instance[get, set] Font manager singleton instance
int
minAntialiasedFontSize[get, set] Min font size for antialiased fonts (0 means antialiasing always on, some big value = always off)
subpixelRenderingMode[get, set] Current subpixel rendering mode for fonts (aka ClearType)

Methods

NameDescription
checkpoint () Clear usage flags for all entries - to clean up unused fonts
cleanup () Removes entries not used after last call of checkpoint() or cleanup()
clearGlyphCaches () Clear glyph cache
getFamilies () Return list of font families available, associated with generic families
getFont (selector) Get font instance best matched specified parameters
getFontImpl (selector) Non-caching implementation of getFont