jdmonin / JSettlers2

Java Settlers project home, downloads, and GPLv3 source code. To download the latest version as a JAR, see https://github.com/jdmonin/JSettlers2/releases/latest .
http://nand.net/jsettlers/
GNU General Public License v3.0
160 stars 63 forks source link

enable font antialias in linux #92

Closed kotc closed 2 years ago

kotc commented 3 years ago

as you can see on my screenshots fonts look ugly without it. they are a bit fuzzy with AA, but in my opinion it's better than without

diff-0004-enable-aa-in-linux.txt

jdmonin commented 3 years ago

This is a nice simple improvement, thank you!

Does it work for you as ("awt.useSystemAAFontSettings","on") instead of "lcd_hrgb" ? I'd prefer to keep it slightly general.

If I can ask, what linux distro and version are you using?

kotc commented 3 years ago

on means no subpixel rendering in theory, lcd_hrgb makes it easier to read what exact subrendering is enabled

kotc commented 3 years ago

as for distro, its slackware current, but i think its more about what window manager is running. in my case its fluxbox. i suspect gnome/kde etc might set some env that java is picking up automatically

jdmonin commented 3 years ago

ok thanks. What about plain "lcd" ?

kotc commented 3 years ago

plain lcd is probably same as lcd_hrgb

kotc commented 3 years ago

one possible upgrade to the patch is checking if that variable is empty (to honor command line params)

jdmonin commented 3 years ago

Good ideas; thanks again. When you have time, please test and let me know if that commit c642e7a works for you.

kotc commented 3 years ago

yes, it works (and seems to honor command line -D... too), thanks

jdmonin commented 3 years ago

Great! Thank you again

jdmonin commented 2 years ago

This fix was released as part of v2.5.00. Thanks again!