.ttc

Term side of the Card.
Topic: Fonts
Unit title: .ttc
Categories: Format
Explanation side of the Card

Explanation: The font format that stores multiple TrueType fonts in a single file, making it more efficient for managing large collections of fonts. It's typically used for fonts that share similar characteristics and are often bundled together.

Example

Wrongcss
@font-face {
  font-family: 'Gothic';
  src: url('/fonts/gothic.ttc');
}
Rightcss
@font-face {
  font-family: 'Gothic';
  src: url('/fonts/gothic-regular.woff2') format('woff2');
}

Browsers do not reliably load font collections, so the needed face is extracted and converted to .woff2.

Common mistakes

  • Pointing @font-face at a .ttc file and getting a fallback font.
  • Thinking a .ttc is one font, while it bundles several faces that share glyph data.

Interview questions

How do I extract a font from a TTC file?

Use a font tool such as fonttools to split the collection into separate .ttf files, then convert the ones you need.

Why are system CJK fonts often TTC files?

CJK fonts have tens of thousands of glyphs, and a collection lets several styles share them, saving disk space.

Analytics cookiesWe'd like to use analytics cookies to see which pages are useful. They're set only if you accept. Privacy Policy