Class FreeTypeFontManager

FreeType based font manager.

class FreeTypeFontManager
  : FontManager;

Constructors

NameDescription
this ()

Fields

NameTypeDescription
_hintingMode HintingMode
_instance FontManager
_minAnitialiasedFontSize int
_subpixelRenderingMode SubpixelRenderingMode

Properties

NameTypeDescription
registeredFontCount[get] intreturns number of registered fonts
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
cleanup () removes entries not used after last call of checkpoint() or cleanup()
clearGlyphCaches () clears glyph cache
getFaces () override to return list of font faces available
getFont (size, weight, italic, family, face) get font instance with specified parameters
registerFont (filename, skipUnknown)
registerFont (filename, family, face, italic, weight, dontLoadFile) register freetype font by filename - optinally font properties can be passed if known (e.g. from libfontconfig).

Aliases

NameDescription
~this