84#if defined(CLIP_DFA_DISABLE)
92#if defined(CLIP_DFA_OVERRIDE)
FontFamily family
字体系列
Definition Font.h:212
HFONT CreateHandle() const
创建HFONT句柄
bool strikeOut
是否有删除线
Definition Font.h:177
std::wstring name
字体的字体名称,此字符串的长度不能超过 32
Definition Font.h:142
FontClipPrecision clipPrecision
裁剪精度
Definition Font.h:192
static Font GetFont(HFONT hFont)
通过HFONT获取字体信息
bool underline
是否有下划线
Definition Font.h:172
int escapement
转义向量与设备的 x 轴之间的角度(以十分之一度为单位)
Definition Font.h:152
FontQuality quality
输出质量
Definition Font.h:197
Font(const LOGFONTW &logFont)
从LOGFONTW构造字体对象
Font(const std::wstring &name, double size=12, FontWeight weight=FontWeight::DontCare)
构造指定字体名称、大小与粗细的字体对象
FontOutPrecision outPrecision
输出精度
Definition Font.h:187
FontWeight weight
字体的粗细,范围为 0 到 1000
Definition Font.h:162
bool italic
是否为斜体
Definition Font.h:167
double size
字体大小,以dip为单位
Definition Font.h:147
FontCharSet charSet
字符集
Definition Font.h:182
static Font & GetDefaultFont(bool update=false)
获取默认字体,线程中首次调用或参数update为true时会获取系统默认字体
Font(const std::wstring &name, FontCharSet charSet)
构造指定字体名称和字符集的字体对象
FontPitch pitch
字体的间距和系列
Definition Font.h:207
int orientation
每个字符的基线和设备 x 轴之间的角度(以十分之一度为单位)
Definition Font.h:157
值转换器接口
Definition IValueConverter.h:14
SimpleWindow框架的顶级命名空间,所有公共类型、控件、枚举和工具函数均定义于此。
Definition Alignment.h:4
FontQuality
输出质量
Definition Font.h:103
@ ClearType
如果设置,则尽可能使用 ClearType 抗锯齿方法呈现文本。
@ Proof
字体的字符质量比逻辑字体属性的精确匹配更重要。 对于 GDI 光栅字体,将禁用缩放,并选择大小最接近的字体。 虽然在使用PROOF_QUALITY时可能无法精确映射所选字号,但字体质量较高,外观不会失真...
@ NoAntiAliased
字体永远不会抗锯齿。
@ AntiAliased
如果字体支持该字体,并且字体大小不是太小或太大,则字体始终为抗锯齿。
@ Draft
字体的外观不如使用PROOF_QUALITY时重要。 对于 GDI 光栅字体,会启用缩放,这意味着可以使用更多字号,但质量可能较低。 如有必要,将合成粗体、斜体、下划线和删除线字体。
FontPitch
字体的间距
Definition Font.h:115
@ Fixed
等宽间距(所有字符宽度相同,如 Courier New)
@ Variable
可变间距(字符宽度随字形变化,如 Arial)
FontFamily
字体系列
Definition Font.h:124
@ Swiss
笔划宽度可变的字体 (成比例) 且不带衬线。 例如 MS Sans Serif。
@ Modern
具有固定笔划宽度的字体 (带衬线或无衬线) 的空白字体。 Monospace 字体通常是新式字体。 例如,Pica、Elite 和 CourierNew。
@ Roman
笔划宽度可变的字体 (比例) 和衬线。 例如 MS Serif。
@ Decorative
新奇字体。 例如 Old English。
@ Script
设计为类似于手写的字体。 例如 Script 和 Cursive。
FontOutPrecision
输出质量
Definition Font.h:64
@ String
字体映射器不使用此值,但在枚举光栅字体时会返回此值。
@ TrueType
当系统包含多个同名字体时,指示字体映射器选择 TrueType 字体。
@ Outline
此值指示字体映射器从 TrueType 和其他基于大纲的字体中进行选择。
@ Raster
当系统包含多个同名字体时,指示字体映射器选择光栅字体。
@ Stroke
字体映射器不使用此值,但在枚举 TrueType、其他基于轮廓的字体和矢量字体时返回此值。
@ TrueTypeOnly
指示字体映射器仅从 TrueType 字体中进行选择。 如果系统中没有安装 TrueType 字体,字体映射器将返回到默认行为。
@ PostScriptOnly
指示字体映射器仅从 PostScript 字体中进行选择。 如果系统中没有安装 PostScript 字体,字体映射器将返回到默认行为。
@ Device
当系统包含多个同名字体时,指示字体映射器选择设备字体。
FontWeight
字体的粗细
Definition Font.h:12
@ UltraLight
超细,同 ExtraLight
@ DontCare
不指定(由字体映射器选择默认粗细)
@ ExtraBold
特粗,同 UltraBold
@ ExtraLight
特细,同 UltraLight
@ UltraBold
超粗,同 ExtraBold
FontClipPrecision
剪裁精度
Definition Font.h:80
@ Embedded
必须指定此标志才能使用嵌入的只读字体。
@ StrokePrecis
字体映射器不使用,但在枚举光栅、矢量或 TrueType 字体时返回。 为了兼容,枚举字体时始终返回此值。
@ LH_Angles
使用此值时,所有字体的旋转取决于坐标系的方向是左手还是右手。如果未使用,设备字体始终逆时针旋转,但其他字体的旋转取决于坐标系的方向。
FontCharSet
字符集
Definition Font.h:33
@ ShiftJIS
日语 Shift-JIS 字符集
@ CheneseBig5
繁体中文(Big5)字符集
@ Default
默认字符集(随系统区域设置而定)
@ ANSI
ANSI 字符集(Windows-1252,西欧)
@ Oem
OEM 字符集(随系统 OEM 代码页)