TrueType Font MIME Type

Learn what font/ttf files contain, how to identify and open TrueType fonts, and what Poly can do with them.

MIME type details for font/ttf

In active use
MIME typefont/ttf
Extensions
.ttf.otf
Magic number00 01 00 00
First standardized1991
Created byApple Computer
Browser supportChrome, Edge, Firefox, Opera, Safari
Example applicationsApple Font Book, Windows Font Settings
Poly supportYes. Poly previews TrueType fonts with a specimen and shows extracted family, style, weight, glyph-count, and estimated language coverage.
Indexed by PolyYes. Poly indexes a font specimen for visual similarity search and supports filename search; extracted font details are not text-searchable.
Preview in PolyYes. Poly shows a rendered specimen. A collection preview represents its first face, and a variable font preview uses its default instance.
Poly agentYes. The Poly agent can view the rendered specimen and its family, format, glyph-count, and estimated language-coverage caption, but cannot inspect every font table or variation.

What does font/ttf mean?

The font/ttf media type identifies a TrueType-flavored font. A typical .ttf file is an sfnt container whose tables describe glyph outlines, character mappings, metrics, names, hinting instructions, and possibly advanced layout features. A font renderer scales the outlines and turns them into pixels at the requested size.1

TrueType is not merely a collection of letter-shaped images. Its glyphs use mathematical outlines, while its tables connect characters to glyphs and tell software how to space and render them. Modern .ttf files are commonly OpenType fonts with TrueType outlines. OpenType deliberately retained the TrueType sfnt container and compatibility with the original TrueType format.2

The extension does not tell you which languages a font covers, whether it is a variable font, or whether you may redistribute it. Inspect the font's tables and license rather than assuming those properties from .ttf.

How to identify a TTF file

The registered signature is the four-byte sfntVersion value 00 01 00 00, also written as 0x00010000. It indicates TrueType outline data. The table directory follows that value and lists the font's top-level tables.23

Some older Apple TrueType fonts begin with the ASCII tag true instead. The current OpenType specification permits that legacy value in Apple's TrueType model but says OpenType fonts should not use it.2 This is one reason a robust identifier should inspect the header and table directory rather than checking only the filename.

RFC 8081 registered font/ttf in February 2017. The media type is therefore much newer than the font technology itself. Older configurations may use labels such as application/x-font-ttf or application/x-font-truetype; these are not registered aliases. RFC 8081 explicitly describes application/x-font-ttf as unregistered. The registered application/font-sfnt is a separate, deprecated generic font type whose replacement is font/sfnt, not font/ttf.345 Use font/ttf for a TrueType font.

Where TrueType came from

Apple designed TrueType as an efficient, extensible outline-font technology and licensed it to Microsoft. Apple shipped full support in System 7 in May 1991. Microsoft followed with Windows 3.1 in April 1992.4

The format solved two related problems. One font outline could scale across many screen and printer sizes, and TrueType hinting could adjust those outlines to the pixel grid for clearer rendering at small sizes. OpenType later extended the same container with broader language and typographic capabilities while supporting both TrueType and CFF outline systems.16

The MIME registration came later because downloadable web fonts had become common. RFC 8081 created the font top-level type and registered font/ttf, font/otf, font/woff, and font/woff2 as clearer labels for the formats already in use.3

How to open or install a .ttf file

On macOS, double-click the file to inspect and install it with Font Book. Font Book supports ordinary and variable TrueType .ttf files and validates fonts for errors during installation.7 On Windows 10 or 11, right-click a .ttf file and choose Install, or use Settings > Personalization > Fonts to preview and manage installed fonts.8

Current Chrome, Edge, Firefox, Opera, and Safari releases can use TrueType fonts supplied through CSS @font-face. MDN lists font/ttf as the TrueType MIME type and describes @font-face as widely available across browsers.9

@font-face {
  font-family: "Example Sans";
  src: url("/fonts/example-sans.ttf") format("truetype");
  font-display: swap;
}

The server should return Content-Type: font/ttf. Cross-origin font requests also need an appropriate CORS response when the font and page come from different origins.9

For a production website, prefer WOFF2 when your license permits web embedding. Keep the TTF as an editable or installable source when your workflow needs it, and offer WOFF as a fallback only when your browser targets require one.

Support in Poly

Poly displays a rendered specimen for a .ttf, with details such as its family, format, weight, style, glyph count, and estimated language coverage. You can find fonts by filename, filter for font files, and search for visually similar specimens. The agent can view the specimen and its caption, which helps answer questions about the typeface's visible character. Poly also recognizes older labels including application/x-font-ttf and application/x-font-truetype as TrueType fonts.

The details shown are not a full font inspection. Poly checks one face, so a multi-face font collection preview describes its first face. Variable fonts are represented at their default variation settings. Font metadata is available in the file details panel but is not searchable as text; the preview also cannot expose every glyph, feature, license field, or font table. Open or download the file in a font application when those details matter.

Changing the filename to .txt, .otf, or an image extension does not enable those capabilities. It only gives Poly and other software misleading type information.

TTF, OTF, WOFF, and WOFF2 compared

These labels overlap because they describe related outline systems and containers, not four unrelated font designs.

FormatMIME typeUsual extensionPractical role
TrueType-flavored fontfont/ttf.ttfInstallable sfnt font, normally with TrueType outlines
OpenType fontfont/otf.otfInstallable sfnt font that may use CFF, TrueType, or other supported outline data
WOFFfont/woff.woffWeb packaging for an underlying sfnt font, with optional table compression
WOFF2font/woff2.woff2Web packaging with newer compression and table transforms

RFC 8081 notes that .ttf is typically used for TrueType outlines, while .otf can represent an OpenType font with TrueType or CFF outlines.3 The suffix alone is therefore a convention, not a complete technical description.

WOFF is a wrapper around an existing TrueType or OpenType font. A conforming WOFF decoder restores the underlying font data so it renders identically to its well-formed input.10 WOFF2 applies additional transformations before compression to remove redundancy in the sfnt representation.11

Converting a TTF file

Choose the output for the job:

  • TTF to WOFF2: best for serving a font on the web. Use a font-aware converter, retain the original, and verify that names, glyphs, variable axes, and layout features survived.
  • TTF to WOFF: useful as a compatibility fallback. WOFF repackages the font tables rather than redesigning the glyphs.10
  • TTF to OTF: useful only when a tool or production workflow specifically requires an .otf deliverable. Renaming the file is not conversion, and changing outline formats can alter hinting or other details.
  • TTF to a subset: reduces a web font to selected glyphs, but omitted characters will fall back to another font. Test every language, symbol, and OpenType feature your page needs.
  • TTF to PDF or images: appropriate when you need to preserve a particular appearance without distributing an installable font. The result is no longer a reusable font file.

Check the font license before converting, subsetting, embedding, or redistributing it. A technically successful conversion does not grant permission to publish the result.

Are TTF files safe?

Treat an untrusted font as executable input to a complex parser. TrueType hinting instructions are interpreted code, and RFC 8081 warns that malicious fonts can consume excessive CPU or memory. The extensible table structure can also carry hidden binary data.3

Install fonts only from sources you trust. Keep the operating system, browser, and design software updated, and validate a downloaded font before installing it. Font Book performs validation on macOS; on Windows, Microsoft likewise advises confirming that you trust the source before installation.78

Fonts can also contain names, copyright notices, vendor details, and licensing permissions. They do not provide confidentiality for that information. Inspect those fields before distributing an internal or commissioned font.13

Footnotes

  1. Microsoft Typography. TrueType Overview. ↩ ↩2 ↩3
  2. Microsoft Typography. OpenType Font File. ↩ ↩2 ↩3
  3. Lilley, C. RFC 8081: The "font" Top-Level Media Type. Internet Engineering Task Force, February 2017. ↩ ↩2 ↩3 ↩4 ↩5 ↩6
  4. Microsoft Typography. A Brief History of TrueType. ↩ ↩2
  5. Internet Assigned Numbers Authority. application/font-sfnt Media Type Registration. ↩
  6. Microsoft Typography. OpenType Overview. ↩
  7. Apple Support. Install and Validate Fonts in Font Book on Mac. ↩ ↩2
  8. Microsoft Support. Manage Fonts in Windows. ↩ ↩2
  9. MDN Web Docs. @font-face. ↩ ↩2
  10. World Wide Web Consortium. WOFF File Format 1.0. ↩ ↩2
  11. World Wide Web Consortium. WOFF File Format 2.0. ↩
© Poly Corp. 2026