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

clearGlyphCaches
void clearGlyphCaches()

clears glyph cache

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

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 by properties

initialize
bool initialize()

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.
_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