mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-24 10:08:00 -06:00
Release builds have no Simplified Chinese face: craft-fonts' only Hans face is Noto Sans CJK SC, which build.rs skips (AGENTS.md §1.1). The Chinese UI therefore fell through to BIZ UDPGothic, which lacks 226 of the 771 Han characters in zh-hans.tsv (欢, 导, 签, 编, 创 ...) and 12 in zh-hant.tsv. In a Chinese interface built without a Hans face, the desktop app now loads one installed Chinese face (Microsoft YaHei/JhengHei, PingFang, Hiragino Sans GB, STHeiti, WenQuanYi, Droid Sans Fallback; never Noto CJK or Source Han) and places it before the Japanese faces so a line keeps one face and one baseline. Other languages keep the existing Arabic-capable fallback, last in every family. Still one installed font, read at runtime, never embedded; PDFCRAFT_SYSTEM_FONTS=0 still turns it off. Claude-Session: https://claude.ai/code/session_01Rsrc3tE4vB8UrMazUAkSkU Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>