Convert font formats

Font files contain information about font tables, glyphs, and script outlines that can be accessed by an operating system and applications to render text. Popular file formats include TTF, OTF, CFF, and EOT.

Supported font file conversions

FromTo
CFFFont: TTF, WOFF, WOFF2
EOTFont: TTF, WOFF, WOFF2
OTFFont: TTF, WOFF, WOFF2
PFBFont: TTF, WOFF, WOFF2
TTFFont: TTF, WOFF, WOFF2
WOFFFont: TTF, WOFF, WOFF2
WOFF2Font: TTF, WOFF, WOFF2

Convert to another font format

With GroupDocs.Conversion you can easily convert your font file from one format into another. For example, CFF to TTF conversion code snippet looks like this:

// Load the source font file
const converter = new groupdocs.conversion.Converter("Lato-Regular.cff");
// Set the convert options
const options = new groupdocs.conversion.FontConvertOptions();
options.setFormat(groupdocs.conversion.FontFileType.Ttf);
// Convert to TTF format
converter.convert("Lato-Regular.ttf", options);

Put it simply - you just load a CFF file into the Converter class, select the desired output format and GroupDocs.Conversion does all the rest.