Song select: smaller board titles outside English #75

Merged
Yonokid merged 1 commits from GanYiZhong/YataiDONNijiiro:fix/title-size into main 2026-10-21 06:04:21 +02:00
Collaborator

Song select titles looked oversized in every language except English.

English uses the condensed font_en, while Japanese (font.ttf), Chinese (font_cn), Korean (font_kr) and other languages get full-width fonts. At the same point size their song board, folder board and difficulty-select header titles look much larger and nearly fill the boards.

  • box_base.lua: new title_scale() returns 0.8 when tex.language() is not English, 1.0 for English.
  • box_song.lua / box_folder.lua: board, folder and header titles are created at size * title_scale(). The scale is part of the title cache key, so changing the language at runtime rebuilds them.
  • English output is unchanged (song select frames compared byte for byte).

🤖 Generated with Claude Code

Song select titles looked oversized in every language except English. English uses the condensed `font_en`, while Japanese (`font.ttf`), Chinese (`font_cn`), Korean (`font_kr`) and other languages get full-width fonts. At the same point size their song board, folder board and difficulty-select header titles look much larger and nearly fill the boards. - `box_base.lua`: new `title_scale()` returns 0.8 when `tex.language()` is not English, 1.0 for English. - `box_song.lua` / `box_folder.lua`: board, folder and header titles are created at `size * title_scale()`. The scale is part of the title cache key, so changing the language at runtime rebuilds them. - English output is unchanged (song select frames compared byte for byte). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
GanYiZhong added 1 commit 2026-10-21 05:24:18 +02:00
English uses the condensed font_en, but Japanese (font.ttf), Chinese (font_cn), Korean (font_kr)
and the other languages get full-width fonts, so at the same point size their song, folder and
header titles look far larger and fill the boards. Draw those titles at 0.8x when the language
is not English. English is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Yonokid merged commit 103ac8b621 into main 2026-10-21 06:04:21 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Yonokid/YataiDONNijiiro#75