CJK characters not rendering properly #9410
Replies: 5 comments 16 replies
-
Beta Was this translation helpful? Give feedback.
-
|
After completely exiting Ghostty and then re-entering it (without entering tmux), Chinese characters are rendered correctly, and rendering also works correctly after enter tmux. However, if I enter tmux first, then rendered in tmux, the Chinese fonts are rendered incorrectly. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Use CJK fallback, seems be better. |
Beta Was this translation helpful? Give feedback.
-
Possible root cause after some local testing:macOS's CTFontCreateForString is non-deterministic (Still not sure about it). Ghostty's CJK fallback path trusts and permanently caches its return value. When it occasionally returns AppleMyungjo (PostScript PCMyungjo, a Korean font) as the fallback for simplified-Chinese codepoints, those codepoints stay misrouted in the affected SharedGrid for its lifetime. Evidence:
My workaround for Simplified Chinese characters with font-codepoint-mapThis setting will force these Unicode characters to use the given font. |
Beta Was this translation helpful? Give feedback.









Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, today I was experimenting with a couple of new fonts until I noticed that the CJK characters are not rendering properly in Ghostty. I deleted the config to use the default settings, still it doesn't render in the correct way. It relates to #3499
Beta Was this translation helpful? Give feedback.
All reactions