DlangUI
Cross Platform GUI for D programming language
dlangui.platforms.windows.win32fonts
- class Win32Font: dlangui.graphics.fonts.Font;
- Font implementation based on Win32 API system fonts.
- this();
- need to call create() after construction to initialize font
- void clear();
- cleanup resources
- bool create(FontDef* def, int size, int weight, bool italic);
- init from font definition
- class Win32FontManager: dlangui.graphics.fonts.FontManager;
- Font manager implementation based on Win32 API system fonts.
- this();
- initialize in constructor
- bool init();
- initialize font manager by enumerating of system fonts
- FontRef _emptyFontRef;
- for returning of not found font
- ref FontRef getFont(int size, int weight, bool italic, FontFamily family, string face);
- get font by properties
- FontDef* findFace(FontFamily family);
- find font face definition by family only (try to get one of defaults for family if possible)
- FontDef* findFace(string face);
- find font face definition by face only
- FontDef* findFace(FontFamily family, string face);
- find font face definition by family and face
- bool registerFont(FontFamily family, string fontFace, ubyte pitchAndFamily);
- register enumerated font
- void checkpoint();
- clear usage flags for all entries
- void cleanup();
- removes entries not used after last call of checkpoint() or cleanup()