Skip to content

🐛 Fixed Japanese katakana in Admin headings turning into squared glyphs - #33302

Open
wonjangcloud9 wants to merge 1 commit into
TryGhost:mainfrom
wonjangcloud9:fix/cjk-heading-dlig
Open

wonjangcloud9 wants to merge 1 commit into
TryGhost:mainfrom
wonjangcloud9:fix/cjk-heading-dlig

Conversation

@wonjangcloud9

@wonjangcloud9 wonjangcloud9 commented Nov 25, 2026 •

Copy link
Copy Markdown

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-settings in clients/admin/src/index.css and from .section-heading in clients/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 the dlig feature. font-variant-ligatures: no-discretionary-ligatures can't override it, because font-feature-settings wins, 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):

dlig on and off in Hiragino Sans, Hiragino Kaku Gothic ProN and Apple SD Gothic Neo

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 dlig off 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.

  • I've read and followed the Contributor Guide
  • I've explained my change
  • I've written an automated test to prove my change works: this is a CSS font-feature change, which the unit and acceptance suites don't render. I checked it with the standalone page shown above, and didn't build Ghost locally.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Admin heading and Shade section-heading font settings no longer enable dlig. Their other listed font features remain enabled.

Possibly related PRs

  • TryGhost/Ghost#32508: Updates the admin7Design-gated .section-heading rule that this change also modifies.

Suggested reviewers: 9larsons, peterzimon

Change: Bug fix · Severity of issue fixed: Medium

Merge Risk: Minimal · up to 5b47a

This removes the discretionary-ligature font feature from Admin and Shade headings so Japanese katakana no longer renders as squared glyphs. The only user-visible trade-off is that headings lose Inter's discretionary ligatures, and the change is easy to revert. It is low risk to merge.

Pre-merge checks: Passed 7

Check name Status Explanation
Title check Passed The title names the main change: Japanese katakana in Admin headings no longer render as squared glyphs. The changeset removes 'dlig' from heading font-feature settings in the Admin and Shade CSS, whi…
Linked Issues check Passed Issue #32974 requires that Japanese katakana in the Admin post title render normally. The issue names 'dlig' in heading font-feature settings as the cause and suggests removing it. Head contents confi…
Out of Scope Changes check Passed The diff against the merge base changes one declaration in clients/admin/src/index.css and one in clients/shade/styles.css. Each change removes only 'dlig'. The remaining features are unchanged. Both …
Description check Passed The description explains the Japanese katakana rendering bug in the Admin post-title field and the change that removes 'dlig' from heading font-feature settings in clients/admin/src/index.css and clie…
Type-Safe Boundaries Passed The check is not applicable to this pull request. The changed-file inventory (git diff --name-status between the review base and head) lists only two files: clients/admin/src/index.css and clients/sha…
New Files Are Typescript Passed The check fails only when the PR adds a new .js/.jsx/.cjs/.mjs source file outside the listed exceptions. The changed-file inventory for refs/coderabbit/pre-merge-check/base...head lists only two entr…
Tooling Ownership Passed The Tooling ownership check covers scripts, tools and shared configuration. The PR's changed-file inventory (git diff --name-status against the review base) lists only two files, both modified: - `c…
Full details: Title check

Explanation

The title names the main change: Japanese katakana in Admin headings no longer render as squared glyphs. The changeset removes 'dlig' from heading font-feature settings in the Admin and Shade CSS, which addresses that symptom. The title uses an emoji prefix, which the guidelines discourage, but the title is otherwise specific and on-topic.

Full details: Linked Issues check

Explanation

Issue #32974 requires that Japanese katakana in the Admin post title render normally. The issue names 'dlig' in heading font-feature settings as the cause and suggests removing it. Head contents confirm both required removals. In clients/admin/src/index.css, --heading-font-feature-settings is now 'zero' 1, 'ss01' 1, 'cv05' 1 (was 'dlig' 1 first). In clients/shade/styles.css, .section-heading font-feature-settings is now 'zero', 'ss01', 'ss02', 'cv10', 'cv06' (was 'dlig' first). The PR description and summary refer to apps/ paths, but the changed files are under clients/. The described change matches the files at head. The issue has no coding requirement for an automated test. The visual result rests on the author's standalone rendering, which is manual evidence and not an automated test. That does not block this objective, because the issue does not require a test.

Full details: Out of Scope Changes check

Explanation

The diff against the merge base changes one declaration in clients/admin/src/index.css and one in clients/shade/styles.css. Each change removes only 'dlig'. The remaining features are unchanged. Both edits implement the objective of #32974 directly. The loss of Inter's discretionary ligatures in headings is a stated trade-off of the fix, not an unrelated change. No out-of-scope changes were found. Evidence is the diff for the two files and the PR summary. I did not check the full file list for other changed paths, so this result relies on the supplied whole-PR summary for that part.

Full details: Description check

Explanation

The description explains the Japanese katakana rendering bug in the Admin post-title field and the change that removes 'dlig' from heading font-feature settings in clients/admin/src/index.css and clients/shade/styles.css. It gives the cause, the trade-off, and the testing status. It matches the changeset.

Full details: Type-Safe Boundaries

Explanation

The check is not applicable to this pull request. The changed-file inventory (git diff --name-status between the review base and head) lists only two files: clients/admin/src/index.css and clients/shade/styles.css. Both are CSS stylesheets. The change removes 'dlig' from a font-feature-settings declaration in each file. The diff adds no boundary data consumption (HTTP, external API, env/config, DB/filesystem, queue/webhook payloads), no any, no unchecked as, no @ts-nocheck or @ts-ignore, and no hand-written type duplicating a Zod schema. Config and style files are excluded from this check's scope.

Full details: New Files Are Typescript

Explanation

The check fails only when the PR adds a new .js/.jsx/.cjs/.mjs source file outside the listed exceptions. The changed-file inventory for refs/coderabbit/pre-merge-check/base...head lists only two entries, both modifications (M): - clients/admin/src/index.css - clients/shade/styles.css No files are added (A) or renamed (R), and no JavaScript file of any kind is touched. The check therefore does not apply to this PR, and it passes. The PR's changes are CSS-only: removing 'dlig' from the heading font-feature settings. Pre-existing JS files are not modified, so the check cannot fail on them either.

Full details: Tooling Ownership

Explanation

The Tooling ownership check covers scripts, tools and shared configuration. The PR's changed-file inventory (git diff --name-status against the review base) lists only two files, both modified: - clients/admin/src/index.css: removes 'dlig' 1 from --heading-font-feature-settings. - clients/shade/styles.css: removes 'dlig' from .section-heading font-feature-settings. Neither path is a script, a tool, a shared configuration file, a scripts folder, or a tools/, ghost/scripts/ or ghost/bin/ path. No file moves, deletions or new files exist, so no callers, relative paths, sparse checkouts, Docker/Nx inputs or shipped paths can change. The check's placement and execution rules do not apply, so it passes.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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>

This branch has not been deployed

No deployments
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.

Japanese katakana in the post title field render as squared ligature glyphs (caused by "dlig" in heading font-feature-settings)

1 participant