Java-based GUI Runs with Pixelated Fonts

Symptom

  • You are starting SID-Refresh™ on Linux/Unix with the Java-based GUI and the text fonts are pixelated.

Figure 1a: Sample Pixelated Text Fonts in SID-Refresh GUI
Figure 1b: Sample Pixelated Text Fonts in SID-Refresh GUI

Environment

  • Linux/Unix Systems

Cause

  • The desktop setting you want isn't supported on your desktop (e.g., you want LCD text on Windows).

  • JRE doesn't recognize your desktop setting (e.g., KDE).

  • You are automating testing under each of these conditions.

Resolution

  • Set on the command line as of the specified value to control rendering hints used by Swing text:

java -Dawt.useSystemAAFontSettings=lcd -jar /Install/SIDRefresh.jar
Figure 2: Setting System Font on Linux/Unix Systems
Figure 3a: Improved Text Font in SID-Refresh™ GUI After Resolution
Figure 3b: Improved Text Font in SID-Refresh™ GUI After Resolution

Last updated