mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-14 19:27:05 -04:00
The Han fallback list carried a Simplified and a Traditional face for every platform (Microsoft YaHei next to Microsoft JhengHei, PingFang SC next to PingFang TC), Simplified first. The fallback search keeps the first family whose face covers the character, and the two scripts share their code points - only the glyph forms differ - so a zh-hant interface was drawn with Simplified forms, and a Traditional face could not win on a machine that also had a Simplified one. The list is now two, picked by the script the locale in force asks for: Hant, or a Taiwan, Hong Kong or Macao region. A bare zh stays Simplified, as the interface's own locale mapping resolves it. `asks_traditional_chinese` normalises case and separators, and `chinese_families_for` is pure, so the choice is testable without installed fonts. The Han order and the Japanese and Korean lists are untouched. Verified: cargo fmt --all --check clean, cargo clippy -p effectcraft-text --all-targets -- -D warnings clean, cargo test -p effectcraft-text 54 tests pass.