Hello Wisej Team,
I recently migrated from Wisej 3 to Wisej 4. After the migration, I’ve encountered a significant issue with Korean text rendering.
Issue Description: In Wisej 3, Korean text in Labels and Buttons with AutoSize=true displayed correctly on a single line. However, in Wisej 4, the same Korean text now wraps to multiple lines, breaking the UI layout.
Root Cause Analysis: Based on the documentation at https://docs.wisej.com/docs/whats-new-in-4.0/managed-graphics, I understand that Wisej 4 replaced the platform-specific graphics implementations (GDI+ on Windows) with the new System.Drawing.Managed
. While this provides consistency across platforms, it appears that the font metrics calculation for Korean characters, is not accurate.
Technical Details:
Reproduction Steps:
Request: Could you please investigate and improve the font metrics calculation for CJK characters in System.Drawing.Managed? This would greatly benefit developers creating applications for Asian markets.
Environment:
libgdiplus
Thank you for your continued development of this excellent framework.
Best regards,
Bill Kim
P.S. I attached screenshots (.jpg) and a .zip file, but I’m getting a “forbidden” error message.
Hi Julie,
Thank you for the quick response and for confirming the issue with Labels.
I see you tested with controls placed directly on the form, but the main issue I reported occurs specifically when controls are inside a FlowLayoutPanel. I’ve created a test project and captured a screenshot that clearly demonstrates this issue.
As you can see in the attached screenshot:
Top section (FlowLayoutPanel):
Bottom section (directly on form):
Key Findings:
Impact:
The screenshot clearly shows that System.Drawing.Managed’s text measurement is critically flawed, especially within FlowLayoutPanel’s layout engine.
I’ll try again to upload the complete sample project along with this screenshot. This prevents us from migrating to Wisej 4 for our Korean market applications.
Best regards,
Bill Kim
Thanks for reporting this. I tested and I was able to reproduce with a label but not with a button. We’ll look into fixing this.
Can you try to post your sample please?
To solve the “forbidden” error message, try reloading the page, or closing and reopening the browser. Also make sure that you delete the .vs bin and obj folders from your sample so that the filesize is smaller.
Julie
Please login first to submit.