Browse our Products

Aspose.Font for C++ 26.5 Release Notes

Major Features

Aspose.Font for C++ 26.5 is technical release for use with Aspose C++ products ver 26.5.

Example

void ConvertEot::EotToTtfExample1()
{
    System::Console::WriteLine(u"EOT to TTF ex: 1");
    
    //ExampleStart: 1
    // Open eot font, passing TTF as value for FontType, TtfFont will be returned as result of call Font.Open(), get_DataDir() must return path to "LoraRegular.eot"
    System::String fontPath = System::IO::Path::Combine(get_DataDir(), u"LoraRegular.eot");
    System::SharedPtr<FontDefinition> fontDefinition = System::MakeObject<FontDefinition>(Aspose::Font::FontType::TTF, System::MakeObject<FontFileDefinition>(System::MakeObject<FileSystemStreamSource>(fontPath)));
    System::SharedPtr<Aspose::Font::Font> font = Aspose::Font::Font::Open(fontDefinition);
    
    // Ttf output settings, get_OutputDir() mest return result path
    System::String outPath = System::IO::Path::Combine(get_OutputDir(), u"EotToTtf_out1.ttf");
    
    // Save opened font to TrueType format
    font->Save(outPath);
    //ExampleEnd: 1
}

Got Queries?

If you have any query related to Aspose::Font for C++ API, please feel free to write to reach us on Aspose.Font forum. We’ll be glad to assist you with your inquiries.