Class FontManager

Access points to fonts.

Inherits from

  • Object (base class)

Fields

Name Type Description
_hintingMode HintingMode
_instance FontManager
_minAnitialiasedFontSize int
_subpixelRenderingMode SubpixelRenderingMode

Properties

Name Type Description
fontGamma [get] double get font gamma (1.0 is neutral, < 1.0 makes glyphs lighter, >1.0 makes glyphs bolder)
fontGamma [set] double set font gamma (1.0 is neutral, < 1.0 makes glyphs lighter, >1.0 makes glyphs bolder)
hintingMode [get] HintingMode get current hinting mode (Normal, AutoHint, Disabled)
hintingMode [set] HintingMode set hinting mode (Normal, AutoHint, Disabled)
instance [set] FontManager sets new font manager singleton instance
instance [get] FontManager returns font manager singleton instance
minAnitialiasedFontSize [get] int get min font size for antialiased fonts (0 means antialiasing always on, some big value = always off)
minAnitialiasedFontSize [set] int set 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] SubpixelRenderingMode get current subpixel rendering mode for fonts (aka ClearType)
subpixelRenderingMode [set] SubpixelRenderingMode set subpixel rendering mode for fonts (aka ClearType)

Methods

Name Description
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
getFont get font instance best matched specified parameters

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2014

License

Boost License 1.0