データを読み込んで抽出します| .NET

ディスクからタイプ1フォントをロードします

.NET APIのAspose.Fontでは、デジタルストレージに保存されているファイルからType1フォントタイプを読み取ることができます。ディスクに保存されているType1フォントファイルは、次の手順を使用してロードできます。

1// For complete examples and data files, please go to https://github.com/aspose-font/Aspose.Font-for-.NET
2string fileName = dataDir + "courier.pfb"; //Font file name with full path
3
4FontDefinition fd = new FontDefinition(FontType.Type1, new FontFileDefinition("pfb", new FileSystemStreamSource(fileName)));
5Type1Font font = Aspose.Font.Font.Open(fd) as Type1Font;

Have any questions about Aspose.Font?



Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.