Opened 3 months ago

Closed 7 weeks ago

#2478 closed task (fixed)

java ugly/non-antialiased font rendering

Reported by: edso Owned by: osgeolive@…
Priority: normal Milestone: OSGeoLive17.0
Component: OSGeoLive Keywords:
Cc: osgeolive@…

Description (last modified by edso)

as noticed by running OpenJUMP. see https://trac.osgeo.org/osgeolive/raw-attachment/ticket/2478/Screenshot%202024-09-09%20203422.png

tips from the net like export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true' do not seem to help.

Attachments (1)

Screenshot 2024-09-09 203422.png (51.5 KB ) - added by edso 3 months ago.

Download all attachments as: .zip

Change History (11)

comment:1 by edso, 3 months ago

Description: modified (diff)

comment:2 by edso, 3 months ago

spoke too soon. probably mistyped into my vm. export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true' fixes it.

this can be made permanent by appending
_JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'
to
/etc/environment.

can someone please add this fix to the alpha? thanks!

comment:3 by kalxas, 3 months ago

Is this fix expected to affect other projects?

comment:4 by edso, 3 months ago

indeed. you may want to check other java apps with gui, but i'd expect them to suffer from similar issues which should be solved by setting this env var globally.

comment:5 by edso, 3 months ago

i see base java specific stuff is setup in

https://github.com/OSGeo/OSGeoLive/blob/master/bin/base_java.sh

do you want me to provide a PR for that to the effect above?

comment:6 by kalxas, 3 months ago

yes please

comment:8 by kalxas, 3 months ago

Thank you, it has been merged. Please test the latest nightly. http://download.osgeo.org/livedvd/nightly/

comment:9 by kalxas, 3 months ago

Cc: osgeolive@… added

comment:10 by kalxas, 7 weeks ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.