Caricare ed estrarre dati | C ++ | Aspose.Font

Carica Tipo1 Carattere dal disco

Aspose.Font per API C ++ ti consente di leggere i tipi di carattere Type1 da file archiviati nel tuo archivio digitale. I file di carattere di Type1 archiviati su disco possono essere caricati utilizzando i seguenti passaggi.

1For complete examples and data files, please go to https://github.com/aspose-font/Aspose.Font-for-C
2System::String fileName = dataDir + u"courier.pfb";
3//Font file name with full path
4    
5System::SharedPtr<FontDefinition> fd = System::MakeObject<FontDefinition>(Aspose::Font::FontType::Type1, System::MakeObject<FontFileDefinition>(u"pfb", System::MakeObject<FileSystemStreamSource>(fileName)));
6System::SharedPtr<Type1Font> font = System::DynamicCast_noexcept<Aspose::Font::Type1::Type1Font>(Aspose::Font::Font::Open(fd));

Have any questions about Aspose.Font?



Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.