Class Win32FontManager
Font manager implementation based on Win32 API system fonts.
Inherits from
-
(base class)FontManager
Constructors
Name | Description |
---|---|
this
|
initialize in constructor |
Fields
Name | Type | Description |
---|---|---|
_emptyFontRef
|
Ref!(dlangui.graphics.fonts.Font) |
for returning of not found font |
_hintingMode
|
HintingMode |
|
_instance
|
FontManager |
|
_minAnitialiasedFontSize
|
int |
Properties
Name | Type | Description |
---|---|---|
hintingMode
[get]
|
HintingMode |
get current hinting mode (Normal, AutoHint, Disabled) |
hintingMode
[set]
|
HintingMode |
set hinting mode (Normal, AutoHint, Disabled)
|
instance
[set]
|
FontManager |
sets new font manager singleton instance
|
instance
[get]
|
FontManager |
returns font manager singleton instance
|
minAnitialiasedFontSize
[get]
|
int |
get min font size for antialiased fonts (0 means antialiasing always on, some big value = always off) |
minAnitialiasedFontSize
[set]
|
int |
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)
|
Methods
Name | Description |
---|---|
checkpoint
|
clear usage flags for all entries |
cleanup
|
removes entries not used after last call of checkpoint () or cleanup ()
|
findFace
|
find font face definition by family only (try to get one of defaults for family if possible)
|
findFace
|
find font face definition by face only
|
findFace
|
find font face definition by family and face
|
getFont
|
get font by properties |
init
|
initialize font manager by enumerating of system fonts |
registerFont
|
register enumerated font |
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0