Aspose.Font  for C++

C++ Font Manipulation Library

Load, Draw and Save different Fonts such as TrueType, WOFF, EOT, OpenType, CFF, and Type1 within C++ based applications.

  Download Free Trial Try Online

Font is the set of graphical representations of symbols. The way a font looks depends on the font’s parameters such as type family, typeface, font proportions, etc. Working with fonts is an important part of interface development, design, or typography. How will your interface look depends on the font you chose, but also there is a lot of factors you need to take to stop on the right font. Not only users do pay attention to the readability of the texts but also search engines take them into account when forming search results

Aspose.Font for C++ is a flexible and easy-to-use library to work with different font formats such as TTF, EOT, WOFF, CFF, and Type1. Using this API you will be able to read different fonts from files as well as from streams, provide their data structures information along with any glyph, encode information for all the font types, and save fonts. End-users can get help through its rendering subsystem to render any desired glyph or text.

Advanced C++ Font Management API Features

Load font documents from disc

Load font files stream

Read font information

Save updated font files to disc

Read Glyphs and Metrics information

Detect Latin Symbols in Fonts

Extract embedded licensing information

Render text using font glyphs

Support various font formats

Load, Extract and Save TrueType Font

Aspose.Font for C++ can easily load, extract, and save TrueType font formats. Here are just few lines of code for TrueType TTF.

Load, Extract and Save TrueType Font - C++

    using namespace System;
    using namespace Aspose::Font::Sources;
    using namespace Aspose::Font::Ttf;
    using namespace Aspose::Font;

    // Open ttf font
    SharedPtr<FontFileDefinition> fontFileDefinition = MakeObject<FileSystemStreamSource>(u"Montserrat-Regular.ttf");
    SharedPtr<FontDefinition> fontDefinition = MakeObject<FontDefinition>(FontType::TTF, fontFileDefinition);
    SharedPtr<Font> font = Font::Open(fontDefinition);
    // Woff output settings
    SharedPtr outStream = IO::File::Create(u"Montserrat-Regular-new.woff");
    // Convert ttf to woff
    font->SaveToFormat(outStream, FontSavingFormats::WOFF);


Support and Learning Resources


Aspose.font offers individual Font management APIs for other popular development environments as listed below: