FontEmbeddingLicensingRights
FontEmbeddingLicensingRights class
代表字体的嵌入许可权利。
public class FontEmbeddingLicensingRights
特性
姓名 | 描述 |
---|---|
BitmapEmbeddingOnly { get; } | 表示“仅位图嵌入”限制。 |
EmbeddingUsagePermissions { get; } | 使用权限。 |
NoSubsetting { get; } | 表示“无子集”限制。 |
评论
要了解更多信息,请访问 OpenType 规范部分 Microsoft Typography 门户上的 。
例子
展示如何获取嵌入字体(FontInfo)的许可权利信息。
Document doc = new Document(MyDir + "Embedded font rights.docx");
// 获取文档字体列表。
FontInfoCollection fontInfos = doc.FontInfos;
foreach (FontInfo fontInfo in fontInfos)
{
if (fontInfo.EmbeddingLicensingRights != null)
{
Console.WriteLine(fontInfo.EmbeddingLicensingRights.EmbeddingUsagePermissions);
Console.WriteLine(fontInfo.EmbeddingLicensingRights.BitmapEmbeddingOnly);
Console.WriteLine(fontInfo.EmbeddingLicensingRights.NoSubsetting);
}
}
也可以看看
- 命名空间 Aspose.Words.Fonts
- 部件 Aspose.Words