Engineering Guides

Subsetting CJK Fonts for Unity TextMeshPro & Godot Game Builds

Extract exact localized glyphs from CSV/JSON game dialogue scripts and subset 18 MB CJK TTFs into lean TextMeshPro and Godot assets locally.

4 min readUpdated:

Quick Answer

Unity TextMeshPro SDF atlases and Godot mobile builds bloat when packed with 25,000 unused CJK glyphs. Drop your game's .ttf/.otf plus localization .json, .csv, or .txt scripts into FontTo to extract every unique character, check missing glyphs, and export a lean game-ready TTF locally.

Why un-subsetted fonts hurt mobile and WebGL game builds

Shipping an indie game in Simplified/Traditional Chinese, Japanese, or Korean requires crisp typography for menus, dialogue, and HUDs. Including full 15–25 MB CJK source fonts balloons WebGL/mobile APK sizes and stalls TextMeshPro SDF Font Asset baking.

Yet most games only use 1,200 to 3,500 unique characters across their entire localization script. Subsetting the TTF before importing into Unity or Godot shrinks the font binary by 95%–99% and guarantees every script character fits cleanly inside a single crisp texture atlas.

Auto-extracting unique characters from JSON, CSV & dialogue scripts

Drop your .json, .csv, or .txt localization files alongside your source .ttf directly in the browser. FontTo parses every unique Unicode codepoint (including supplemental CJK Extension glyphs and symbols), retains ASCII 0–9/A–z for dynamic damage numbers and timers, flags any missing glyphs in red, and exports both the subsetted TTF and a clean charset list.

  • Zero network upload: unreleased game dialogue and NDA scripts stay strictly on your workstation.
  • Always includes ASCII digits and HUD symbols (HP, %, +, -, /) when enabled.
  • Outputs standard TTF or OTF compatible with Unity TextMeshPro and Godot 4 FontFile.

Frequently asked questions

Should I choose TTF or OTF for Unity TextMeshPro and Godot?

TTF is generally recommended for Unity TextMeshPro and Godot MSDF/SDF rasterizers, while both TTF and OTF are supported.

What if my game lets players type arbitrary nicknames?

Keep your subsetted font for fixed UI/dialogue and pair it with OS system fallback fonts inside TextMeshPro Fallback Lists for user-entered names.

Can I also see which characters from my script are missing in the font?

Yes. FontTo's Missing-Character Radar highlights every unsupported character immediately so you can spot missing glyphs before shipping.

Authoritative References

Tools used in this guide

Related formats

Related Comparisons

More engineering guides