Repository navigation
CJK font rendering regression on macOS 26.5: mixed sans-serif/serif styles within same text #12919
DescriptionCJK characters are rendered with mixed font styles — some glyphs appear in a sans-serif style (e.g. PingFang SC / Heiti SC) while others appear in a serif style (e.g. Songti SC) — within the same text block on macOS 26.5 (Tahoe). This appears to be a regression of the issue fixed in #811 (originally reported in #707). Environment
Steps to reproduce
Expected behaviorAll CJK characters should render consistently with the same font style. The system fallback font should be PingFang SC (sans-serif), and all characters should use it uniformly. Actual behaviorWithin the same line of pure Chinese text, different characters are rendered with visibly different font styles:
The pattern is not consistent and varies between terminal sessions. InvestigationI performed extensive testing to rule out font resolution issues:
Root cause hypothesismacOS 26.5 appears to have changed the font rendering behavior that the fix in #811 relied on. Since Ghostty's Metal renderer handles its own font fallback logic for CJK characters, changes in macOS's font rendering pipeline can cause the fallback to select different font variants (e.g., different weights or styles within the same font family) for different characters. This is consistent with the original issue #707 where Ghostty's fallback was picking a Related issues
|
Replies: 1 comment
|
Duplicate of #9410? Note the recent insights in #9410 (comment) . |
Duplicate of #9410? Note the recent insights in #9410 (comment) .