Engineering Guides

How to Unpack PingFang.ttc, Noto OTC & macOS .dfont Collections to TTF/WOFF2

Extract individual Regular, Medium, and Bold weights from .ttc, .otc Super Collections, and macOS .dfont fonts directly in browser memory.

4 min readUpdated:

Quick Answer

TTC, OTC, and .dfont containers bundle multiple weights (such as PingFang.ttc or Noto CJK Super OTC) so web browsers and many design apps cannot load them directly. FontTo parses 'ttcf' headers and Apple Resource Forks locally in RAM to extract standalone TTF, OTF, or WOFF2 files with zero size caps.

Inside 'ttcf' font collections and why browsers reject them

Operating systems package CJK system families like macOS PingFang.ttc, Hiragino Sans, and Windows msyh.ttc as TrueType/OpenType Collections because multiple weights share thousands of identical glyph outlines. Each collection starts with the 4-byte 'ttcf' magic tag followed by an offset table pointing to every embedded face.

While efficient on disk, CSS @font-face, Unity, and many Windows utilities refuse multi-face .ttc/.otc archives. You must unpack the specific weight you need into a standalone SFNT binary.

Handling 100 MB+ Super OTC and PingFang archives safely

Cloud converters choke on 40–120 MB system collections. FontTo reads the collection directory directly from your local ArrayBuffer, displays every embedded face's family name, subfamily weight, outline type, and glyph count, and lets you extract only the weights you actually need—saving memory and time.

  • TTC to TTF: Reconstructs independent 4-byte aligned TrueType tables with valid head.checkSumAdjustment.
  • TTC to WOFF2: Unpacks selected faces and encodes Brotli WOFF2 + @font-face CSS in a single ZIP.
  • OTC to OTF: Extracts PostScript CFF ('OTTO') faces from Noto/Source Han Super OTC packs.
  • DFONT to TTF: Parses classic Apple Resource Fork maps to rescue 'sfnt' font resources.

Important licensing note for system collections

Always verify redistribution terms before uploading extracted OS fonts onto public websites: proprietary macOS/Windows system fonts are typically licensed for desktop OS rendering rather than public web embedding, whereas open-source Noto Sans CJK / Source Han collections (SIL OFL) are cleared for web subsetting.

Frequently asked questions

Will unpacking a TTC or OTC corrupt shared kerning or glyph tables?

No. Each extracted face copies every table listed in its SFNT TableRecord, aligns offsets to 4-byte boundaries, and recalculates the global SFNT head checksum.

What is the difference between TTC to TTF and OTC to OTF?

TTC contains TrueType (glyf) faces extracted as .ttf, while OTC contains OpenType CFF ('OTTO') faces extracted as .otf.

Can I convert extracted CJK faces into unicode-range WOFF2 slices next?

Yes — after unpacking, pass the standalone .ttf/.otf directly into CJK Font Splitter or Chinese Font Compressor via local handoff.

Authoritative References

Tools used in this guide

Related formats

Related Comparisons

More engineering guides