Convert TTF to WOFF2 | C++

[ ]

On this page, you will find the example of using the Aspose solution for converting from TrueType font to Web Open Font Format version 2.

If you need to know the Aspose conversion fundamentals get to the How to convert the font into the desired format? chapter.

Then take the next steps:

  1. Open TTF font.
  2. Write the output settings for the WOFF2 format.
  3. Make conversion from TTF to WOFF2 and save the result using SaveToFormat() method of the base abstract Font class instance.
C++ code example TTF to WOFF2 conversion
Input file
Upload a file you want to convert
Output format
Select the target format