Class FontManager

Access points to fonts.

class FontManager;

Fields

NameTypeDescription
_hintingMode HintingMode
_instance FontManager
_minAnitialiasedFontSize int
_subpixelRenderingMode SubpixelRenderingMode

Properties

NameTypeDescription
fontGamma[set] doubleset font gamma (1.0 is neutral, < 1.0 makes glyphs lighter, >1.0 makes glyphs bolder)
fontGamma[get] doubleget font gamma (1.0 is neutral, < 1.0 makes glyphs lighter, >1.0 makes glyphs bolder)
hintingMode[get] HintingModeget current hinting mode (Normal, AutoHint, Disabled)
hintingMode[set] HintingModeset hinting mode (Normal, AutoHint, Disabled)
instance[set] FontManagersets new font manager singleton instance
instance[get] FontManagerreturns font manager singleton instance
minAnitialiasedFontSize[get] intget min font size for antialiased fonts (0 means antialiasing always on, some big value = always off)
minAnitialiasedFontSize[set] intset new min font size for antialiased fonts - fonts with size >= specified value will be antialiased (0 means antialiasing always on, some big value = always off)
subpixelRenderingMode[get] SubpixelRenderingModeget current subpixel rendering mode for fonts (aka ClearType)
subpixelRenderingMode[set] SubpixelRenderingModeset subpixel rendering mode for fonts (aka ClearType)

Methods

NameDescription
checkpoint () clear usage flags for all entries -- for cleanup of unused fonts
cleanup () removes entries not used after last call of checkpoint() or cleanup()
clearGlyphCaches ()
getFaces () override to return list of font faces available
getFont (size, weight, italic, family, face) get font instance best matched specified parameters

Aliases

NameDescription
~this