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

字体 更多...

#include <APIFont.h>

Public 成员函数

void SetName (const String &name)
 
String GetName () const
 
void SetFontFile (const String &fontFile)
 
String GetFontFile () const
 
int GetCharWdith () const
 
void SetCharWdith (int val)
 
int GetCharHeight () const
 
void SetCharHeight (int val)
 
virtual void Update ()
 
bool Decompose (const wchar_t &ch, const FontDecomposer &decomposer) const
 

详细描述

字体

TODO:

成员函数说明

bool AnyCAD::API::Font::Decompose ( const wchar_t &  ch,
const FontDecomposer decomposer 
) const

Decompose the outline of the character

参数
chthe character
decomposerthe decomposing algorithm
返回
the name
int AnyCAD::API::Font::GetCharHeight ( ) const

Get the character's height, default size is 12.

返回
the height
int AnyCAD::API::Font::GetCharWdith ( ) const

Get the character's width

返回
the width
String AnyCAD::API::Font::GetFontFile ( ) const

Get Font File Name

返回
the name
String AnyCAD::API::Font::GetName ( ) const

Get Name

返回
the name
void AnyCAD::API::Font::SetCharHeight ( int  val)

Set the character's height, default size is 12.

参数
valthe height value
void AnyCAD::API::Font::SetCharWdith ( int  val)

Set the character's width

参数
valthe width value
void AnyCAD::API::Font::SetFontFile ( const String fontFile)

Set Font File

参数
fontFilethe file name
void AnyCAD::API::Font::SetName ( const String name)

Set Name

参数
namethe name
virtual void AnyCAD::API::Font::Update ( )
virtual

Update the font


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