Class FontManager
Object that loads and registers fonts.
class FontManager
: dlib.core.ownership.Owner;
Constructors
| Name | Description |
this
(application)
|
Constructor.
|
Fields
| Name | Type | Description |
application
|
Application | Application that the manager is bound to.
|
fonts
|
dlib.container.dict.Trie!(dagon.graphics.font.Font,string) | Dictionary of the registered fonts.
|
monospace
|
Font | Default monospace font.
|
sans
|
Font | Default sans font.
|
Methods
| Name | Description |
addFont
(name, filename, height)
|
Loads and registers a font under a given name.
|
addFont
(name, font)
|
Registers a font under a given name.
|