-
-
Notifications
You must be signed in to change notification settings - Fork 86
feat: improve CJK font rendering with chinese_font_library #722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Integrate chinese_font_library to properly render Chinese, Japanese, and Korean characters across all platforms. Signed-off-by: Dee HY <dongfengweixiao@hotmail.com>
0260d7f to
b4a6d1a
Compare
PartyDonut
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While the implementation looks ok I do have some questions, see the comments.
| ? FladderTheme.theme(darkDynamic ?? FladderTheme.defaultScheme(Brightness.dark), schemeVariant) | ||
| : FladderTheme.theme(themeColor.schemeDark, schemeVariant)); | ||
|
|
||
| // Apply Chinese font for non-Linux platforms (Windows, macOS, Android, iOS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not apply the CJK font for all platforms?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| macos_window_utils: ^1.9.0 | ||
|
|
||
| # Fix cjk font rendering issue on Windows | ||
| chinese_font_library: ^1.2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to just add additional fonts instead of relying on a external package for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, you would at least need to add fonts for Simplified Chinese, Traditional Chinese, and Japanese, which would lead to a significant increase in the size of the final build. Using chinese_font_library might be the solution with the least side effects.



Integrate chinese_font_library to properly render Chinese, Japanese, and Korean characters across all platforms.
I don’t have the environment to build and test.
Pull Request Description
Issue Being Fixed
Resolves #493
Screenshots / Recordings
Checklist