Score:1

Why java applications have UI text cut in half?

tn flag

i don't care much about the fonts themselves, but the line height is cut in half for most awt applications.

eclipse and intellij looks great. but here's jmeter (i'm using some options that makes the font look better, but it doesn't matter at all for the line height problem)

$ 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

enter image description here

edit 1: after taking the screen shot i noticed i had the menu for look and feel open, which I didn't know about. Changing to GTK+ fix the line height in the menu, not in the buttons. But it then also breaks the colors. You can see on the left it's white text on white background

enter image description here

kanehekili avatar
zw flag
AWT has been around since the mid 90. It was developed for VGA screens. I'd go for a QT or (maybe) GTK solution. But: it will run on your raspi connected to a non HD screen.
gabriel avatar
tn flag
this is not a high dpi display. using 100% scalling with 1200 vertical pixels. almost a SVGA :(
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.