Win32FontManager

Font manager implementation based on Win32 API system fonts.

Constructors

this
this()

initialize in constructor

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

findFace
FontDef* findFace(FontFamily family)

find font face definition by family only (try to get one of defaults for family if possible)

findFace
FontDef* findFace(string face)

find font face definition by face only

findFace
FontDef* findFace(FontFamily family, string face)

find font face definition by family and face

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

get font by properties

init
bool init()

initialize font manager by enumerating of system fonts

registerFont
bool registerFont(FontFamily family, string fontFace, ubyte pitchAndFamily)

register enumerated font

Variables

_emptyFontRef
FontRef _emptyFontRef;

for returning of not found font

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