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
Discover the Power of Aspose.Font for C++, - a cutting-edge library for that empowers you to handle various font formats, including TTF, EOT, WOFF, CFF, and Type1. Aspose.Font for C++ lets you effortlessly:
🌟 Read fonts from files or streams with ease, enabling you to work with fonts wherever they are stored.
📊 Gain deep insights into font data structures, providing you with comprehensive information about every aspect of the font.
✨ Whether you're dealing with TTF, EOT, WOFF, CFF, or Type1 fonts, our API simplifies the encoding process, ensuring compatibility with all font types.
💾 Seamlessly save fonts in your preferred format, preserving font integrity and quality.
🎨 Leverage our rendering subsystem to effortlessly render any desired glyph or text, delivering stunning results to impress your end-users.
Experience the future of font handling with Aspose.Font for C++. Give it a chance by getting a free trial or buying the solution today!
At a Glance
An overview of Aspose.Font for C++ API.
- Support Multiple Formats
- Load font documents from disc
- Load font files stream
- Read font information
- Read Glyphs and Metrics info
- Detect Latin Symbols
- Extract embedded licensing info
- Render text
- Save updated font files
- Convert fonts to a more suitable format
The library fully supports C++ applications developed on the Windows and Linux platform having system requirements .
Supported File Formats
Aspose.Font for C++ supports the following file formats :
- True Type Font: TTF
- Web Open Font Format: WOFF
- Input/Output WOFF2
- Embedded OpenType: EOT
- Compact Font Format: CFF
- Adobe Type 1 font: PFA, PFB, AFM, PFM
- True Type Collections: TTC
Advanced .NET Font API Features
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 TTF - 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>("Montserrat-Regular.ttf"); SharedPtr<FontDefinition> fontDefinition = MakeObject<FontDefinition>(FontType::TTF, fontFileDefinition); SharedPtr<Font> font = Font::Open(fontDefinition); // Woff output settings SharedPtr<IO::FileStream> outStream = IO::File::Create("Montserrat-Regular-new.woff"); // Convert ttf to woff font->SaveToFormat(outStream, FontSavingFormats::WOFF);