DWRITE_PANOSE_WEIGHT 枚举 (dwrite_1.h)
DWRITE_PANOSE_WEIGHT枚举包含指定字符权重的值。
语法
typedef enum DWRITE_PANOSE_WEIGHT {
DWRITE_PANOSE_WEIGHT_ANY = 0,
DWRITE_PANOSE_WEIGHT_NO_FIT = 1,
DWRITE_PANOSE_WEIGHT_VERY_LIGHT = 2,
DWRITE_PANOSE_WEIGHT_LIGHT = 3,
DWRITE_PANOSE_WEIGHT_THIN = 4,
DWRITE_PANOSE_WEIGHT_BOOK = 5,
DWRITE_PANOSE_WEIGHT_MEDIUM = 6,
DWRITE_PANOSE_WEIGHT_DEMI = 7,
DWRITE_PANOSE_WEIGHT_BOLD = 8,
DWRITE_PANOSE_WEIGHT_HEAVY = 9,
DWRITE_PANOSE_WEIGHT_BLACK = 10,
DWRITE_PANOSE_WEIGHT_EXTRA_BLACK = 11,
DWRITE_PANOSE_WEIGHT_NORD
} ;
常量
DWRITE_PANOSE_WEIGHT_ANY 值: 0 任何权重。 |
DWRITE_PANOSE_WEIGHT_NO_FIT 值:1 没有适合的重量。 |
DWRITE_PANOSE_WEIGHT_VERY_LIGHT 值: 2 非常轻的重量。 |
DWRITE_PANOSE_WEIGHT_LIGHT 值: 3 重量 轻。 |
DWRITE_PANOSE_WEIGHT_THIN 值: 4 重量轻。 |
DWRITE_PANOSE_WEIGHT_BOOK 值: 5 书籍权重。 |
DWRITE_PANOSE_WEIGHT_MEDIUM 值: 6 中等权重。 |
DWRITE_PANOSE_WEIGHT_DEMI 值: 7 失重。 |
DWRITE_PANOSE_WEIGHT_BOLD 值: 8 粗体权重。 |
DWRITE_PANOSE_WEIGHT_HEAVY 值: 9 重量较重。 |
DWRITE_PANOSE_WEIGHT_BLACK 值: 10 黑色重量。 |
DWRITE_PANOSE_WEIGHT_EXTRA_BLACK 值: 11 额外的黑色重量。 |
DWRITE_PANOSE_WEIGHT_NORD 额外的黑色重量。 |
注解
通过使用 (panose_weight - 2) * 100 = font_weight,DWRITE_PANOSE_WEIGHT值大致对应于DWRITE_FONT_WEIGHT值。
要求
要求 | 值 |
---|---|
最低受支持的客户端 | 适用于 Windows 7 的Windows 8和平台更新 [仅限桌面应用] |
最低受支持的服务器 | 适用于 Windows Server 2008 R2 的Windows Server 2012和平台更新 [仅限桌面应用] |
标头 | dwrite_1.h |