Convert CFF to WOFF2
CFF to WOFF2 Conversion functionality for C++. API to transform fonts.
Need to convert CFF fonts to WOFF2 within your C++ applications? Our Font API Solution for C++ makes it remarkably straightforward, often requiring just a few lines of code to integrate. This powerful API not only provides a comprehensive font data structure, encompassing glyph details and encoding information for various font types (mapping character codes to glyph IDs), but also empowers you to render any glyph or text. Even special glyphs can be rendered by implementing simple graphics interfaces using basic functionalities like "move point," "draw line," and "curve."
Given the diverse landscape of devices, environments, operating systems, and the varied uses of fonts in web pages, applications, and publishing, the need to transform CFF fonts into different formats to ensure proper display frequently arises.
We offer you С++ Api Solution that supports the next fonts as input formats: TrueType (TTF) and Web Open Font Format 2 (WOFF2).
CFF to WOFF2 Conversion on C++
To learn more about all that you need to work with the API and the basic information about fonts that will help you code them go to Documentation and choose the language you code in.
- Open CFF font using Open() Method.
- Specify the WOFF2 output settings.
- Convert CFF to WOFF2 using SaveToFormat() Method and pass WOFF2 as FontSavingFormats .
Get Started with C++ Font API
- Install from command line as
nuget install Aspose.Font.Cppor via Package Manager Console of Visual Studio withInstall-Package Aspose.Font.Cpp. - Alternatively, get the offline MSI installer or DLLs in a ZIP file from downloads .
- See the example of realisation of the mentioned functionality in cross-platform Aspose CFF to WOFF2 Converter . Go to our GitHub repository to get more code examples on how to work with Font API Solution for C++.
Other Conversion Options
CFF What is CFF File Format
Compact Font Format or CFF is also known as Type 2 font format, or CFF/Type 2 font format. It is said that CFF is not exactly the font format but the way to compress other font formats, like Type 1. Like Type 1 and TrueType formats, CFF also uses hinting. It uses the same methods to represent hints as Type 1, but they are easier and cleaner to write in code and offer a notable space saving.
WOFF2 What is WOFF2 File Format
Web Open Font Format 2 or WOFF2 is the next version of WOFF format with better compression. To be precise it gives a 30% advantage in compression over WOFF format. It uses the byte-level compression algorithm Brotli, which is a library for data compression with the open-source. It is used to speed up the loading of web pages. As WOFF format, WOFF2 is also supported by most browsers.
Support and Learning Resources
- Learning Resources
- Documentation
- Source Code
- API References
- Product Support
- Free Support
- Paid Support
- Blog
- Release Notes
- Why Aspose.Font for C++?
- Customers List
- Success Stories