Control Size increases on Korean OS

I have a windows Form that has a Label control specified with fixed size. It's Autosize value is true and the maximum size contains the same value for width as the width of the control, so that, the control only increases it's height if the need be. This works fine on English OS, but when this is deployed on say Korean OS, the width increases and crosses the maximum limit set in the form.

I have played with Autoscalemode with all the values - Font, DPI, None, Inherit, but doesn't change a thing. What could be wrong with it and How can we overcome this problem.


Yes, it increases and actually is well known (in some circles) behavior. There is some problem with how font are measured (probably fallback font is measured instead of the one you defined).

Instead of setting the size to fixed, I would use TableLayoutPanel as layout manager for this control/form/whatever and allow it to actually resize. You'll need to play with it a bit, but from my experience adding empty distance column works (provided that you have at least one percentage column). This is a bit tricky, but I managed to fix similar defect this way.

I've recently had this same issue, and fixed it by programmatically setting the default font to Sans Serif in the main top-level panel. Details of my answer (to my own question) here:

Need Your Help

BitMap Image Out Of Memory Android

java android bitmap out-of-memory

I have hundreds of images in my virtual magazine. The images are 1241* 1754 pixels with 150 pixels/inch resolution. After sliding to 3/4 of those pages i get an out of memory error as shown in the ...

Send request to JSP and receive response

java jsp servlets response

I have the following scenario of integrating a third party application into my java application. The third party application is running in a different context than my java application. It provides ...