Class FreeTypeFontManager

FreeType based font manager.

Inherits from

Constructors

Name Description
this

Fields

Name Type Description
_hintingMode HintingMode
_instance FontManager
_minAnitialiasedFontSize int
_subpixelRenderingMode SubpixelRenderingMode

Properties

Name Type Description
registeredFontCount [get] int returns number of registered fonts
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
cleanup removes entries not used after last call of checkpoint() or cleanup()
clearGlyphCaches clears glyph cache
getFont get font instance with specified parameters
registerFont register freetype font by filename - optinally font properties can be passed if known (e.g. from libfontconfig).

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2014

License

Boost License 1.0