FontFallBackRule

FontFallBackRule(uint, uint, string)

创建新实例。

public FontFallBackRule(uint startIndex, uint endIndex, string fontNames)
范围类型描述
startIndexUInt32unicode 范围的起始索引
endIndexUInt32unicode 范围的结束索引
fontNamesStringFallBack 的一个或多个字体名称(以逗号分隔)

例子

[C#]
 // 使用一种字体创建新的 FantFallBackRule 实例。
IFontFallBackRule newRule = new FontFallBackRule(0x3040, 0x309F, "MS Mincho");

 // 使用多种字体创建新的 FantFallBackRule 实例。
IFontFallBackRule newRule = new FontFallBackRule(0x3040, 0x309F, "MS Mincho, MS Gothic, Tahoma");

也可以看看


FontFallBackRule(uint, uint, string[])

创建新实例。

public FontFallBackRule(uint startIndex, uint endIndex, string[] fontNames)
范围类型描述
startIndexUInt32unicode 范围的起始索引
endIndexUInt32unicode 范围的结束索引
fontNamesString[]FallBack 的一个或多个字体名称(以逗号分隔)

例子

[C#]
 // 使用两个 fonts
llBackRule 实例
IFontFallBackRule newRule = new FontFallBackRule(0x3040, 0x309F, new string[] { "MS Mincho", "MS Gothic"});

 // 使用多种字体创建新的 FantFallBackRule 实例。
IFontFallBackRule newRule = new FontFallBackRule(0x3040, 0x309F, new string[] { "MS Gothic", "Tahoma, Times New Roman" });

也可以看看