FreeTypeFontManager

FreeType based font manager.

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

checkpoint
void checkpoint()

clear usage flags for all entries

cleanup
void cleanup()

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

clearGlyphCaches
void clearGlyphCaches()

clears glyph cache

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 with specified parameters

registerFont
bool registerFont(string filename, bool skipUnknown)
Undocumented in source. Be warned that the author may not have intended to support it.
registerFont
bool registerFont(string filename, FontFamily family, string face, bool italic, int weight, bool dontLoadFile)

register freetype font by filename - optinally font properties can be passed if known (e.g. from libfontconfig).

Properties

registeredFontCount
int registeredFontCount [@property getter]

returns number of registered fonts

Inherited Members

From FontManager

_instance
FontManager _instance;
Undocumented in source.
_minAnitialiasedFontSize
int _minAnitialiasedFontSize;
Undocumented in source.
_hintingMode
HintingMode _hintingMode;
Undocumented in source.
_subpixelRenderingMode
SubpixelRenderingMode _subpixelRenderingMode;
Undocumented in source.
instance
FontManager instance [@property setter]

sets new font manager singleton instance

instance
FontManager instance [@property getter]

returns font manager singleton instance

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

get font instance best matched specified parameters

getFaces
FontFaceProps[] getFaces()

override to return list of font faces available

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()

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)

hintingMode
HintingMode hintingMode [@property getter]

get current hinting mode (Normal, AutoHint, Disabled)

hintingMode
HintingMode hintingMode [@property setter]

set hinting mode (Normal, AutoHint, Disabled)

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)

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)

clearGlyphCaches
void clearGlyphCaches()
Undocumented in source. Be warned that the author may not have intended to support it.
~this
~this()
Undocumented in source.

Meta