Class FontManager

Object that loads and registers fonts.

class FontManager
  : dlib.core.ownership.Owner;

Constructors

NameDescription
this (application) Constructor.

Fields

NameTypeDescription
application ApplicationApplication that the manager is bound to.
fonts dlib.container.dict.Trie!(dagon.graphics.font.Font,string)Dictionary of the registered fonts.
monospace FontDefault monospace font.
sans FontDefault sans font.

Methods

NameDescription
addFont (name, filename, height) Loads and registers a font under a given name.
addFont (name, font) Registers a font under a given name.