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

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

get font instance with specified parameters

registerFont
bool registerFont(string filename, FontFamily family, string face, bool italic, int weight)

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

Inherited Members

From FontManager

_instance
FontManager _instance;
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

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

~this
~this()
Undocumented in source.

Meta