yccheok / jstock

JStock is a free stock market software for 28 countries.
https://jstock.org
663 stars 347 forks source link

Issue with hdpi and dimension of fonts #168

Open ciobio opened 3 years ago

ciobio commented 3 years ago

I have a 13 inch hdpi monitor laptop with Kubuntu 18.04 I can't solve the problem of too small fonts on the screen. The large fonts feature seems to not work at all. I know it might be a Java problem but I'm not experienced enough to fix it myself. I think it is a common problem and I would be grateful for more specific help.

Attached is a screenshot. Thanks, Fabio Screenshot_20210406_175000

DNS commented 3 years ago

If you use Windows, you can try: Properties > Compatibility > Change high DPI settings

ghost commented 1 year ago

I have the following _JAVA_OPTIONS:

-Dsun.java2d.uiScale=1.35 -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel

This is making the fonts bigger, which is good, and I can read them. But as a side-effect, not all labels fit into their designated areas on the screen, so this issue is still valid.