java internal lucida bold variants and external ttf-dejavu faces badly rasterized in KGS cgoban3 client

Bug #566744 reported by Martin
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
New
Undecided
Unassigned
Nominated for Karmic by Martin
Nominated for Lucid by Martin
sun-java6 (Ubuntu)
New
Undecided
Unassigned
Nominated for Karmic by Martin
Nominated for Lucid by Martin
ttf-dejavu (Ubuntu)
New
Undecided
Unassigned
Nominated for Karmic by Martin
Nominated for Lucid by Martin

Bug Description

- default font appearance settings at 96 dpi
- have ttf-dejavu* packages and java's internal lucida faces available to fc
- javaws http://files.gokgs.com/javaBin/cgoban.jnlp
- play on KGS
- enter unused nick
- login by hitting guest
- look at ugly (too high, ragged) bold fonts game offerings are displayed in (some internal bold lucida)
- look at e.g. overlapping letter 'g' in nicks displayed in nicklist (some dejavu variant)

- one can move affected ttfs out of fontconfig's path to see mentioned faces changing (after app restart)
- FC_DEBUG=1 javaws ... | grep family | sort | uniq should show them selected, too
- orderly shaped fonts were displayed with karmic's sun-java6
- the bad fonts can be seen in openjdk-jre (karmic or lucid), too

- maybe some forced dpi change in karmic->lucid transition?
- maybe some problem in java rasterization requests? (but both implementations fail in lucid, openjdk in karmic)
- maybe some bad font metrics?
- maybe errors in rasterization?

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: sun-java6-jre 6.20-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic i686
Architecture: i386
Date: Mon Apr 19 17:51:57 2010
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: sun-java6

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

no, it's a font, which does have wrong metrics. please try to remove fonts, which you did install on your system (packages starting with ttf-*), until you found the font with the bad metrics. then reassign this bug to the font package

affects: sun-java6 (Ubuntu) → ubuntu
Changed in ubuntu:
status: New → Incomplete
Martin (wortheld)
summary: - java font selection issue with KGS cgoban3 client
+ java internal lucida bold variants and external ttf-dejavu faces badly
+ rasterized in KGS cgoban3 client
Martin (wortheld)
description: updated
Martin (wortheld)
description: updated
affects: ubuntu → ttf-dejavu (Ubuntu)
Changed in ttf-dejavu (Ubuntu):
status: Incomplete → New
Revision history for this message
Ingrid (tech-shicho) wrote :

Something like this problem affects me too, but I'm not sure what causes it.

The version of java I'm using is openjdk-6-jre, on a clean installation of Ubuntu 10.04. (The problem did not occur with 8.04 or 9.04.) I haven't installed any fonts.

The font looks like it is too big for the space available to it (e.g., descenders from 'g's are chopped off and one column of text runs into the next).

Revision history for this message
Ingrid (tech-shicho) wrote :

On further examination, it looks like my problem does occur on other Ubuntu distributions.

Given that it is not tied to any specific distribution or version of java, my problem is possibly due to CGoban3 itself. Perhaps it is deciding to pack as many lines in as possible, and not properly estimating the width of columns that have 'Robot' in the player name.

Apologies if this isn't relevant to the original bug.

Revision history for this message
ziggystar (ziggystar-gmx) wrote :

Can someone make this clear?
Can this problem be fixed by removing a font package from the installation?

I've removed ttf-dejavu and restarted CGoban3, but the fonts looked still bad.

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

Make sure that you have ttf-dejavu-extra installed.

If this doesn't help

 - $ ls -d /usr/share/doc/ttf-*
 - remove one of these other font packages, recheck after
   removing a font package, until only the ttf-dejavu packages
   are installed.
- if you find the font package which doesn't show the bad font,
  reinstall it, and make sure that you see the bad font again.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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