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:

using GroupDocs.Conversion;
using GroupDocs.Conversion.FileTypes;
using GroupDocs.Conversion.Options.Convert;

// Load the source font file
using (Converter converter = new Converter("Lato-Regular.cff"))
{
    // Set the convert options
    var options = new FontConvertOptions
    {
        Format = 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.