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:
// Load the source font file
constconverter=newgroupdocs.conversion.Converter("Lato-Regular.cff");// Set the convert options
constoptions=newgroupdocs.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.
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.