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.
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:
usingGroupDocs.Conversion;usingGroupDocs.Conversion.FileTypes;usingGroupDocs.Conversion.Options.Convert;// Load the source font fileusing(Converterconverter=newConverter("Lato-Regular.cff")){// Set the convert optionsvaroptions=newFontConvertOptions{Format=FontFileType.Ttf};// Convert to TTF formatconverter.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.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.