admin管理员组

文章数量:1278912

We are currently migrate from Java 8 to Java 11. Now I test how our application works with scaling. The problem I've faced is that some labels (mostly used as a table renderer) are horizontally cut by a pixel when the window is on Full HD screen with 125% scaling. I have another screen with 4k resolution and 250% scaling, but cann't reproduce my problem when application window is on this screen. The same is when I turn off scaling on my Full HD screen (get no problem).

As you see the last digit in the plain "136,00" is cut by 1 pixel. It seems, that computing of String width works wrong in my case.

In my application the Roboto font is used. When I change the font to Arial I get same problems but on another places.

Unfortunately I cann't reproduce this problem in a minimal reproduceable example (MRE). But maybe somebody has faced same problems and know how to overcome them.

My OS is Windows 10.

本文标签: javaSome labels are not properly displayed when in Full HD with 125 scalingStack Overflow