Skip to content

fix(gui): use FontUtils.getCompositeFont() that supports CJK#2751

Merged
skylot merged 1 commit intoskylot:masterfrom
ewt45:cjkfont
Jan 20, 2026
Merged

fix(gui): use FontUtils.getCompositeFont() that supports CJK#2751
skylot merged 1 commit intoskylot:masterfrom
ewt45:cjkfont

Conversation

@ewt45
Copy link
Copy Markdown
Contributor

@ewt45 ewt45 commented Jan 20, 2026

after commit 0c3e6e7 that introduces flatlaf fonts, some panels doesn't support CJk characters any more. e.g. left panel, and settings dialog after changing ui font. (images are below)

Thers's a related issue from FlatLaf: Font issues with CJK. The solution is to use Font.deriveFont() or com.formdev.flatlaf.util.FontUtils.getCompositeFont() instead of new Font().

This PR adjust some places that could lead to CJK missing problems.

currently CJK problems preview:

image

ezgif-7fb1f1638b34a447

Copy link
Copy Markdown
Owner

@skylot skylot left a comment

Choose a reason for hiding this comment

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

Nice! Thank you!

@skylot skylot merged commit c677901 into skylot:master Jan 20, 2026
3 of 4 checks passed
@ewt45 ewt45 deleted the cjkfont branch January 21, 2026 12:30
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.

2 participants