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
版权声明:本文标题:java - Some labels are not properly displayed when in Full HD with 125% scaling - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741214629a2359809.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论