AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::FontManager类 参考

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.

参数
fontthe Font object.
Font AnyCAD::API::FontManager::FindFont ( const String name) const

Find Font by name

返回
the Font
String AnyCAD::API::FontManager::GetDefaultFont ( ) const

Get default Font name.

返回
the font name.
StringList AnyCAD::API::FontManager::ListFontNames ( ) const

List all the font names.

返回
the name list.
Font AnyCAD::API::FontManager::LoadFont ( const String fontName,
const String filePath 
)

Load font from file.

参数
fontNamethe unique name of the font.
filePaththe full font file name
返回
the Font.
void AnyCAD::API::FontManager::SetDefaultFont ( const String name)

Set the default Font by name.

参数
namethe font name.

该类的文档由以下文件生成: