TTF - TrueType Font
Developed by Apple and Microsoft in the late 1980s, TrueType is one of the most common font formats. It uses quadratic Bezier curves for glyph outlines.
Understanding different font formats is essential for choosing the right one for your project. Here's everything you need to know.
Font formats have evolved over decades, from early desktop formats to modern web-optimized formats. Each serves different purposes and has unique characteristics.
| Format | Full Name | Primary Use | Web Support |
|---|---|---|---|
| TTF | TrueType Font | Desktop & Web | All browsers |
| OTF | OpenType Font | Desktop & Print | All browsers |
| WOFF | Web Open Font Format | Web | All browsers |
| WOFF2 | Web Open Font Format 2 | Web (Modern) | Modern browsers |
| EOT | Embedded OpenType | Legacy Web | IE only |
| SVG | SVG Font | Legacy iOS | Limited |
| DFONT | Data Fork Font | macOS | None |
| PFB | Printer Font Binary | Print/Legacy | None |
Developed by Apple and Microsoft in the late 1980s, TrueType is one of the most common font formats. It uses quadratic Bezier curves for glyph outlines.
A joint development by Adobe and Microsoft, OpenType extends TrueType with advanced typographic features. It supports both TrueType and PostScript outlines.
WOFF was created specifically for web use. It wraps TrueType/OpenType fonts with compression and metadata, reducing file sizes by about 40%.
The successor to WOFF, using Brotli compression for 30% smaller file sizes. This is the recommended format for modern web development.
Created by Microsoft specifically for Internet Explorer. EOT includes DRM features and compression but is now considered a legacy format.
Fonts defined using SVG markup. Once needed for older iOS Safari, now largely obsolete but still useful for specific design applications.
A macOS-specific format that stores font data in the data fork rather than the resource fork. Used primarily for system fonts on Mac.
PostScript Type 1 font format, historically important for professional printing. Requires companion .pfm (metrics) and sometimes .afm files.
Use WOFF2 as primary format with WOFF as fallback:
@font-face {
font-family: 'MyFont';
src: url('font.woff2') format('woff2'),
url('font.woff') format('woff');
}
Use TTF or OTF depending on your needs:
Include additional formats for older browsers:
@font-face {
font-family: 'MyFont';
src: url('font.eot');
src: url('font.eot?#iefix') format('embedded-opentype'),
url('font.woff2') format('woff2'),
url('font.woff') format('woff'),
url('font.ttf') format('truetype');
}
Complete technical documentation for all 8 supported font formats.
Side-by-side comparisons: TTF vs OTF, WOFF vs WOFF2, and more.
Learn terms like Unicode, glyphs, kerning, ligatures, and more.
Detailed browser support charts for each font format.