Repository navigation
🐛 Fixed Japanese katakana in Admin headings turning into squared glyphs - #33302
wonjangcloud9 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. WalkthroughThe Admin heading and Shade section-heading font settings no longer enable Possibly related PRs
Suggested reviewers: Change: Bug fix · Severity of issue fixed: Medium Merge Risk:
|
closes TryGhost#32974 The heading font features turned on 'dlig' (discretionary ligatures). Inter has no Japanese glyphs, so the title falls back to a Japanese system font, and fonts such as Hiragino Sans map katakana words like ドル or イニング to their squared forms (U+3300-U+3357) under 'dlig'. Removing 'dlig' from the Admin heading settings and from Shade's .section-heading keeps the other Inter features ('zero', 'ss01', 'cv05' etc.), which those fallback fonts ignore. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2ffaff8 to
5b47a7a
Compare
closes #32974
Why: Japanese post titles in the Admin editor show squared katakana glyphs. In
目次テストマイニングハードル,イニングandドルbecome one small stacked glyph each, while the preview shows the title normally.What it does: removes
'dlig'from--heading-font-feature-settingsinclients/admin/src/index.cssand from.section-headinginclients/shade/styles.css. The other features (zero,ss01,ss02,cv05,cv06,cv10) stay.Cause: Inter has no Japanese glyphs, so the title falls back to the Japanese system font. Hiragino Sans and Hiragino Kaku Gothic ProN map katakana words to their squared forms (U+3300–U+3357, e.g.
ドル→㌦) under thedligfeature.font-variant-ligatures: no-discretionary-ligaturescan't override it, becausefont-feature-settingswins, as the second commenter on the issue found.Rendered in Chrome on macOS,
font-feature-settings: 'dlig' 1(first line of each pair) vs. without it (second line):Korean (Apple SD Gothic Neo) renders the same either way. Only the Japanese fallback fonts change.
Trade-off: headings no longer get Inter's own discretionary ligatures. If you'd rather keep them for Latin text, the alternative is to turn
dligoff only where the title can hold CJK text, but I couldn't find a way to scope a font feature to one font in the fallback chain.🤖 Generated with Claude Code