The font manager. 更多...
#include <APIFontManager.h>
Public 成员函数 | |
Font | FindFont (const String &name) const |
void | AddFont (const Font &font) |
void | SetDefaultFont (const String &name) |
String | GetDefaultFont () const |
Font | LoadFont (const String &fontName, const String &filePath) |
StringList | ListFontNames () const |
The font manager.
TODO:
void AnyCAD::API::FontManager::AddFont | ( | const Font & | font | ) |
Add font for reusing.
font | the Font object. |
StringList AnyCAD::API::FontManager::ListFontNames | ( | ) | const |
List all the font names.
Load font from file.
fontName | the unique name of the font. |
filePath | the full font file name |
void AnyCAD::API::FontManager::SetDefaultFont | ( | const String & | name | ) |
Set the default Font by name.
name | the font name. |