Skip to content

Fix overlapping Japanese vertical text with suitable font fallback - #15

Merged
yo4e merged 2 commits into
mainfrom
codex/vertical-layout-verification
Oct 20, 2026
Merged

yo4e merged 2 commits into
mainfrom
codex/vertical-layout-verification

Conversation

@yo4e

@yo4e yo4e commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Ubuntu Chromium selected WenQuanYi Zen Hei for Japanese text, giving some Han glyphs a zero vertical advance and visibly overlapping text. Prefer available Japanese fonts (including Noto and IPA) before generic fallback for Japanese books. No fonts or network dependency are bundled.

The existing vertical reader test now checks actual adjacent Han/kana advances before and after screenshots, in addition to ruby position and navigation. The diagnostic-only probe is removed from the final tree; the format and parser are unchanged.

Validation:

Remaining limitation: rendering uses installed fonts. Linux environments without a suitable Japanese font need Noto CJK or an IPA font; this is documented.

@yo4e yo4e changed the title Verify Japanese vertical character spacing across platforms Fix overlapping Japanese vertical text with suitable font fallback Oct 20, 2026
@yo4e
yo4e marked this pull request as ready for review October 20, 2026 08:53
@yo4e
yo4e merged commit c7dd13e into main Oct 20, 2026
1 check passed
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