Skip to content

Conversation

@dongfengweixiao
Copy link

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

  • If a new package was added, did you ensure it works for all supported platforms? Is the package well maintained
  • Check that any changes are related to the issue at hand.

Integrate chinese_font_library to properly render Chinese, Japanese, and Korean characters across all platforms.

Signed-off-by: Dee HY <dongfengweixiao@hotmail.com>
@dongfengweixiao
Copy link
Author

before after
屏幕截图 2026-01-25 125225 屏幕截图 2026-01-25 125653

Copy link
Collaborator

@PartyDonut PartyDonut left a 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)
Copy link
Collaborator

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot_2026-01-26-07-46-56-578_com.github.android-edit.jpg

macos_window_utils: ^1.9.0

# Fix cjk font rendering issue on Windows
chinese_font_library: ^1.2.0
Copy link
Collaborator

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.

Copy link
Author

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.

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.

🐛 The Simplified Chinese font display on the Windows version has errors.

2 participants