Fighting Game · Guides & deep dives

V2 CJK Text Density

The rules map launch string keys to surface profiles such as compact buttons, menu labels, body copy, and legal body copy.

3sections1 minread

On this page

This document defines CJK text density adaptation for TODOS.phase-72.72.11.2.3. The validation treats CJK characters as wider display units.

The checks prove:

  • CJK density rules auto-adjust UI element sizes for wider characters.
  • text areas gain lines when CJK display units exceed the base capacity.
  • font size is not reduced to hide overflow.

Density Inputs#

V2/ue/Tools/generate-v2-cjk-text-density.py reads:

  • V2/ue/Content/Localization/V2/StringTables/LaunchStrings_V2.json
  • V2/ue/Content/Localization/V2/CJK/CJKTextDensityRules_V2.json

The rules map launch string keys to surface profiles such as compact buttons, menu labels, body copy, and legal body copy. The generator measures translated CJK text in display units, applies automatic minimum-width and text-area-line adjustments, and writes V2/ue/Content/Localization/V2/CJK/CJKTextDensityReport_V2.json.

Regeneration#

Run the generator after changing CJK launch text, density measurement rules, or UI surface profiles:

bash
python3 V2/ue/Tools/generate-v2-cjk-text-density.py

Verification#

Run this gate after changing CJK translated text, density rules, generated reports, docs, or CI wiring:

bash
python3 V2/ue/Tools/check-v2-cjk-text-density.py

Required release gates:

  • localization-cjk-text-density-contract
  • localization-cjk-text-density-rules
  • localization-cjk-text-density-report
  • localization-cjk-text-density-auto-width
  • localization-cjk-text-density-auto-text-area
  • localization-cjk-text-density-zero-overflow
  • localization-cjk-text-density-ci-wired