Ugly fonts in java app

Bug #234314 reported by Marek Slama
36
This bug affects 2 people
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Fix Released
High
Unassigned
Nominated for Intrepid by Martin Endres
Hardy
Invalid
High
Unassigned

Bug Description

Binary package hint: openjdk-6-jre

According to info from David Herron fontconfig.properties refers to nonexistent lucida fonts. It needs to be updated. Good example to show ugly fonts is to run NetBeans IDE with Metal L&F (which is default)

Revision history for this message
Matthias Klose (doko) wrote :

updated the fontconfig in intrepid; a fixed package for hardy can be found in the openjdk PPA.

Changed in openjdk-6:
status: New → Fix Released
status: New → In Progress
importance: Undecided → High
importance: Undecided → High
Revision history for this message
jeroenl (jeroenl) wrote :

I installed Intrepid much later than the mentioned fix, but it is still a problem.

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

@jeroenvrp,

Can you post some screenshot? Which package are you running? And what is outout of 'dpkg -l openjdk-6-jdk'?

Revision history for this message
Martin Capitanio (capnm) wrote :

Same here, try a simple Test
java -jar rubykara.jar

( http://www.swisseduc.ch/informatik/karatojava/rubykara/classes/rubykara.jar )

1) crappy
java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (build 1.6.0_0-b12)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b12, mixed mode)

ii openjdk-6-jdk 6b12~pre1-0ubuntu3

2) o.k.
java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)

ii sun-java6-jdk 6-07-4ubuntu2

Revision history for this message
Martin Capitanio (capnm) wrote :
  • ok Edit (69.8 KiB, image/png)
Revision history for this message
Martin Endres (endresma) wrote :

I can confirm this bug using Ubuntu 8.10 and 'openjdk-6-jdk' (6b12-0ubuntu6), too.
It seems to affect all Java applications using Swing and the Metal Look&Feel.

Find another screenshot (showing FreeMind, NetBeans and jDownloader) attached.

As captn pointed out, only OpenJDK seems to be affected. Rendering using SunJDK seems to work okay.

Related forum threads of other people experiencing this:
http://ubuntuforums.org/showthread.php?t=957843&highlight=openjdk
http://ubuntuforums.org/showthread.php?t=958343&highlight=openjdk
http://ubuntuforums.org/showthread.php?t=928849&highlight=openjdk

Revision history for this message
xylo (stefan-endrullis) wrote :

Beside "ugly" fonts you can also see on the last screenshot that all fonts are using much more space in y-direction as they should normally use. All buttons, menu bars and other components are much bigger because of that.

Revision history for this message
Marek Slama (mslama-email) wrote :

For big y spacing around text there is separate issue https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/289784 already fixed in openjdk.

Revision history for this message
NoBugs! (luke32j) wrote :

I noticed the font problems when installing the latest Netbeans 6.5.
In the EULA, scrolling down with middle-mouse scrolling makes the text overwrite itself and makes an unreadable mess. Once installed, Netbeans shows code double spaced! Uninstalling openjdk and installing Java6jdk fixed it, though:
http://ubuntuforums.org/showthread.php?t=928849&highlight=netbeans+vertical&page=2

Revision history for this message
Marek Slama (mslama-email) wrote :

Re license text scrolling problem is it in installer or in License Agreement dialog displayed when you first start IDE?

Revision history for this message
panticz.de (panticz.de) wrote :

To fix this bug type following commands in console:

sudo apt-get install sun-java6-jdk
sudo update-java-alternatives -s java-6-sun

Revision history for this message
NoBugs! (luke32j) wrote :

I tried that, and I also uninstalled openjdk, and I'm using sun java 6.
I don't have double spaced fonts, but I still have a font problem - see attached.

Revision history for this message
Marek Slama (mslama-email) wrote :

Regarding NetBeans IDE installer: Please check log file in $HOME/.nbi/log. It contains list of system properties including JDK location and version used to run installer. To display license text JTextPane is used. If you force repaint by scrolling or resizing does it help? It looks like AWT or graphics driver issue. Is it reproducible?

Revision history for this message
NoBugs! (luke32j) wrote :

Yes, the font bug happened several times. ~/.nbi/log/ log is attached.

Revision history for this message
NoBugs! (luke32j) wrote :

After upgrade to 9.04, the garbled text bug I described seems to be fixed!

Revision history for this message
panticz.de (panticz.de) wrote :

You can enable font antialiasing in Java with this parameter:

java -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true YOUR_JAR_FILE

Revision history for this message
Daniel Holbach (dholbach) wrote :

Ubuntu 8.04 (Hardy) is EOL.

Changed in openjdk-6 (Ubuntu Hardy):
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.