|
SimpleWindow
|
字体类 更多...
#include <Font.h>
Public 成员函数 | |
| Font () | |
| 构造字体对象 | |
| Font (const std::wstring &name, FontCharSet charSet) | |
| 构造指定字体名称和字符集的字体对象 | |
| Font (const std::wstring &name, double size=12, FontWeight weight=FontWeight::DontCare) | |
| 构造指定字体名称、大小与粗细的字体对象 | |
| Font (const LOGFONTW &logFont) | |
| 从LOGFONTW构造字体对象 | |
| operator LOGFONTW () const | |
| 隐式转换LOGFONTW | |
| HFONT | CreateHandle () const |
| 创建HFONT句柄 | |
静态 Public 成员函数 | |
| static Font | GetFont (HFONT hFont) |
| 通过HFONT获取字体信息 | |
| static Font & | GetDefaultFont (bool update=false) |
| 获取默认字体,线程中首次调用或参数update为true时会获取系统默认字体 | |
Public 属性 | |
| std::wstring | name = L"" |
| 字体的字体名称,此字符串的长度不能超过 32 | |
| double | size = 12 |
| 字体大小,以dip为单位 | |
| int | escapement = 0 |
| 转义向量与设备的 x 轴之间的角度(以十分之一度为单位) | |
| int | orientation = 0 |
| 每个字符的基线和设备 x 轴之间的角度(以十分之一度为单位) | |
| FontWeight | weight = FontWeight::DontCare |
| 字体的粗细,范围为 0 到 1000 | |
| bool | italic = false |
| 是否为斜体 | |
| bool | underline = false |
| 是否有下划线 | |
| bool | strikeOut = false |
| 是否有删除线 | |
| FontCharSet | charSet = FontCharSet::Default |
| 字符集 | |
| FontOutPrecision | outPrecision = FontOutPrecision::Default |
| 输出精度 | |
| FontClipPrecision | clipPrecision = FontClipPrecision::DefaultPrecis |
| 裁剪精度 | |
| FontQuality | quality = FontQuality::Default |
| 输出质量 | |
| FontPitch | pitch = FontPitch::Default |
| 字体的间距和系列 | |
| FontFamily | family = FontFamily::DontCare |
| 字体系列 | |
字体类
|
static |
获取默认字体,线程中首次调用或参数update为true时会获取系统默认字体
| update | 是否重新获取 |
| FontPitch sw::Font::pitch = FontPitch::Default |
字体的间距和系列
字体的间距