FontManager

Access points to fonts.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

checkpoint
void checkpoint()

clear usage flags for all entries -- for cleanup of unused fonts

cleanup
void cleanup()

removes entries not used after last call of checkpoint() or cleanup()

clearGlyphCaches
void clearGlyphCaches()
Undocumented in source. Be warned that the author may not have intended to support it.
getFaces
FontFaceProps[] getFaces()

override to return list of font faces available

getFont
FontRef getFont(int size, int weight, bool italic, FontFamily family, string face)

get font instance best matched specified parameters

Properties

fontGamma
double fontGamma [@property getter]

get font gamma (1.0 is neutral, < 1.0 makes glyphs lighter, >1.0 makes glyphs bolder)

fontGamma
double fontGamma [@property setter]

set font gamma (1.0 is neutral, < 1.0 makes glyphs lighter, >1.0 makes glyphs bolder)

hintingMode
HintingMode hintingMode [@property getter]

get current hinting mode (Normal, AutoHint, Disabled)

hintingMode
HintingMode hintingMode [@property setter]

set hinting mode (Normal, AutoHint, Disabled)

instance
FontManager instance [@property setter]

sets new font manager singleton instance

instance
FontManager instance [@property getter]

returns font manager singleton instance

minAnitialiasedFontSize
int minAnitialiasedFontSize [@property getter]

get min font size for antialiased fonts (0 means antialiasing always on, some big value = always off)

minAnitialiasedFontSize
int minAnitialiasedFontSize [@property setter]

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
SubpixelRenderingMode subpixelRenderingMode [@property getter]

get current subpixel rendering mode for fonts (aka ClearType)

subpixelRenderingMode
SubpixelRenderingMode subpixelRenderingMode [@property setter]

set subpixel rendering mode for fonts (aka ClearType)

Static variables

_hintingMode
HintingMode _hintingMode;
Undocumented in source.
_instance
FontManager _instance;
Undocumented in source.
_minAnitialiasedFontSize
int _minAnitialiasedFontSize;
Undocumented in source.
_subpixelRenderingMode
SubpixelRenderingMode _subpixelRenderingMode;
Undocumented in source.

Meta