![为什么 Java 应用程序的 UI 文本被减少了一半?](https://linux22.com/image/1190074/%E4%B8%BA%E4%BB%80%E4%B9%88%20Java%20%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E7%9A%84%20UI%20%E6%96%87%E6%9C%AC%E8%A2%AB%E5%87%8F%E5%B0%91%E4%BA%86%E4%B8%80%E5%8D%8A%EF%BC%9F.png)
我不太关心字体本身,但对于大多数 awt 应用程序来说,行高都会减少一半。
eclipse 和 intellij 看起来很棒。但是这是 jmeter(我使用了一些使字体看起来更好的选项,但对于行高问题来说这根本不重要)
$ jmeter
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on
-Dswing.aatext=true
-Dsun.java2d.xrender=true
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.jmeter.gui.MainFrame (file:/usr/share/jmeter/lib/ext/ApacheJMeter_core.jar) to field sun.awt.X11.XToolkit.awtAppClassName
WARNING: Please consider reporting this to the maintainers of org.apache.jmeter.gui.MainFrame
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
编辑 1:截屏后,我注意到我打开了外观菜单,而我之前并不知道这一点。更改为 GTK+ 可以修复菜单中的行高,而不是按钮中的行高。但是它也会破坏颜色。您可以在左侧看到,它是白色背景上的白色文本