Convert font formats

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Conversion MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-conversion -- dnx GroupDocs.Conversion.Mcp --yes
Folders, licensing and more →

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:

import com.groupdocs.conversion.Converter;
import com.groupdocs.conversion.options.convert.FontConvertOptions;
import com.groupdocs.conversion.filetypes.FontFileType;

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