Skip to content

Fix: Use CJK-compatible font for rack image rendering#4451

Open
babyNEKO wants to merge 2 commits into
phpipam:masterfrom
babyNEKO:fix-rack-font-chinese
Open

Fix: Use CJK-compatible font for rack image rendering#4451
babyNEKO wants to merge 2 commits into
phpipam:masterfrom
babyNEKO:fix-rack-font-chinese

Conversation

@babyNEKO
Copy link
Copy Markdown

This PR fixes a long-standing issue where rack images fail to render Chinese characters correctly due to the use of a font that lacks CJK support.

  • Replaces MesloLGS-Regular.ttf with a configurable font path (NotoSansSC-Regular.otf) in RackDrawer::draw().
  • Ensures proper display of multilingual text in rack labels.

Tested on version 1.7.3. Works as expected.

@babyNEKO
Copy link
Copy Markdown
Author

good_draw_rack
bad_draw_rack

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.

1 participant