0
Mermaid SVG font family is not configurable, causing unfixable CJK font fallback
Source: zed-industries/zed#63428 · opened by @Sha1rholder
<img width="1888" height="1280" alt="Image" src=" />
As shown above, Zed hard-codes Mermaid's font family to ui_font_family. As a result, users who rely on ui_font_fallback for correct CJK rendering cannot fix Mermaid's font rendering through settings.json alone. Thus the default font fallback behavior in most operating systems will prioritize Japanese glyphs for CJK text unless the fallback fonts are configured correctly—a common CJK font fallback issue, especially affects systems set to Singapore timezone.
At its core, this is a limitation in Zed's current font fallback implementation that prevents users from configuring the fallback behavior. For CJK users, this is not merely a matter of being unable to achieve a preferred customization; it means that incorrect font fallback cannot be corrected at all.
I've written a PR for this.
(Hope my Chinglish doesn't sound too GPTish. Trust me bro it's human-generated.)
As shown above, Zed hard-codes Mermaid's font family to ui_font_family. As a result, users who rely on ui_font_fallback for correct CJK rendering cannot fix Mermaid's font rendering through settings.json alone. Thus the default font fallback behavior in most operating systems will prioritize Japanese glyphs for CJK text unless the fallback fonts are configured correctly—a common CJK font fallback issue, especially affects systems set to Singapore timezone.
At its core, this is a limitation in Zed's current font fallback implementation that prevents users from configuring the fallback behavior. For CJK users, this is not merely a matter of being unable to achieve a preferred customization; it means that incorrect font fallback cannot be corrected at all.
I've written a PR for this.
(Hope my Chinglish doesn't sound too GPTish. Trust me bro it's human-generated.)
No pledges yet. Be the first to back this.
Comments
Similar requests
Add word segmentation support for CJK languages (Similar to VSCode's wordSegmenterLocales)
20 votes · 0 comments
I would like to improve the behavior of vim mode in CJK languages.
19 votes · 0 comments
Choose a font style (not weight, not family)
20 votes · 0 comments
Custom font family for inlay hints
61 votes · 0 comments
Make avatar fallback to displaying initials if fetching the GitHub user's photo fails
0 votes · 0 comments
No comments yet.