字体 更多...
#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
ch | the character |
decomposer | the decomposing algorithm |
int AnyCAD::API::Font::GetCharHeight | ( | ) | const |
Get the character's height, default size is 12.
int AnyCAD::API::Font::GetCharWdith | ( | ) | const |
Get the character's width
String AnyCAD::API::Font::GetName | ( | ) | const |
Get Name
void AnyCAD::API::Font::SetCharHeight | ( | int | val | ) |
Set the character's height, default size is 12.
val | the height value |
void AnyCAD::API::Font::SetCharWdith | ( | int | val | ) |
Set the character's width
val | the width value |
void AnyCAD::API::Font::SetFontFile | ( | const String & | fontFile | ) |
Set Font File
fontFile | the file name |
void AnyCAD::API::Font::SetName | ( | const String & | name | ) |
Set Name
name | the name |
|
virtual |
Update the font