IFontsManager

IFontsManager 接口

管理演示文稿中的字体。

public interface IFontsManager

属性

名称描述
FontFallBackRulesCollection { get; set; }代表用户的 FontFallBack 规则集合,用于管理字体集合以便通过回退功能进行适当的替代。读/写 IFontFallBackRulesCollection
FontSubstRuleList { get; set; }在渲染时使用的字体替换。读/写 IFontSubstRuleCollection

方法

名称描述
AddEmbeddedFont(byte[], EmbedFontCharacters)添加嵌入字体。在添加任何字体时,请记住大多数字体是受版权保护的。请提前找到字体的许可证,并验证它们可以自由转移到其他机器。如果字体数据为 null 或此字体已嵌入,则可能会抛出 ArgumentException。
AddEmbeddedFont(IFontData, EmbedFontCharacters)添加嵌入字体。在复制任何字体时,请记住大多数字体是受版权保护的。请提前找到字体的许可证,并验证它们可以自由转移到其他机器。如果字体数据为 null 或此字体已嵌入,则可能会抛出 ArgumentException。
GetEmbeddedFonts()返回嵌入到演示文稿中的字体。
GetFontBytes(IFontData, FontStyle)检索表示特定字体样式和字体数据的字节数组。
GetFontEmbeddingLevel(byte[], string)确定给定字节数组和字体名称的字体嵌入级别。
GetFonts()返回演示文稿中使用的字体。
GetSubstitutions()获取有关在演示文稿渲染时将被替换的字体的信息。
RemoveEmbeddedFont(IFontData)移除嵌入字体。
ReplaceFont(IFontSubstRule)使用 IFontSubstRule 中提供的信息替换演示文稿中的字体。
ReplaceFont(IFontSubstRuleCollection)使用一组 IFontSubstRule 中提供的信息替换演示文稿中的字体。
ReplaceFont(IFontData, IFontData)在演示文稿中替换字体。

另见