Skip to content

feat(fonts): add Chiron GoRound TC as a Traditional Chinese fallback - #81

Merged
otnc merged 1 commit into
release/v12from
feat/new-fonts-themes
Aug 30, 2026
Merged

otnc merged 1 commit into
release/v12from
feat/new-fonts-themes

Conversation

@otnc

@otnc otnc commented Aug 30, 2026

Copy link
Copy Markdown
Member

Summary

Expands the automatic script-fallback set with Traditional Chinese coverage.

Fonts — added:

  • Chiron GoRound TC, a Traditional Chinese font, added to the fallback-only catalogue (FONT_CATALOGUE_FALLBACK_ONLY) and to DEFAULT_FONT_FAMILIES. Verified it actually resolves through the Google Fonts CSS API before adding it — this package can only fetch fonts Google Fonts itself serves.
  • Placed ahead of Noto Sans SC in the fallback stack, so a character both fonts can draw still comes out in traditional-style forms rather than simplified ones (Skia resolves the stack per glyph, so order only matters where two fallback fonts overlap).
  • Updated the CLI's --no-fallback help text and the README's font sections (default list, catalogue table, install sample output, --no-fallback description) to mention it alongside the existing three.

Fonts — considered but not added: a few other script-fallback candidates (covering Simplified Chinese, Egyptian hieroglyphs, and general Unicode fallback) turned out not to be distributed through Google Fonts, so they don't fit this package's fonts-only-from-Google-Fonts model — the whole point of resolving fonts by name through the Google Fonts CSS API is that it doubles as the licence check (see googleFonts.ts).

Themes — no changes: after comparing against the current named color-theme catalogue (COLOR_THEME_CATALOGUE, 21 entries), nothing new to add — the palette this package already ships matches it in full.

Verified end-to-end (not just the catalogue wiring): rendered Traditional-Chinese-specific text with a clean font cache and confirmed Chiron GoRound TC downloads, registers, and draws the glyphs correctly rather than falling through to tofu or a simplified-style substitute.

Test plan

  • npm run typecheck
  • npm run ci (Biome)
  • npm run test (786 tests, incl. 2 new ones covering the fallback-catalogue and ordering)
  • Manual end-to-end render of Traditional Chinese text against an empty font cache — Chiron GoRound TC downloads and renders correctly

Rounds out the script-fallback set (Korean, Simplified Chinese, Arabic)
with Traditional Chinese. Placed ahead of Noto Sans SC in the fallback
stack so a character both fonts can draw still comes out in
traditional-style forms rather than simplified ones.

Verified end-to-end: downloads, registers and draws correctly for
Traditional-Chinese-specific text.
@otnc
otnc merged commit b3249f5 into release/v12 Aug 30, 2026
7 checks passed
@otnc
otnc deleted the feat/new-fonts-themes branch August 30, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant