sun-java6-jdk specifies dejavu font, but doesn't depend on dejavu

Bug #849836 reported by Mike on 2011-09-14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sun-java6 (Ubuntu)

Bug Description

Package sun-java6-jdk (and probably sun-java6-jre) both include a "jre/lib/" which override a number of font mappings - in particular latin is mapped to "dejavu" font.

However there is no package dependency set for "dejavu", which means if the sun-java6-jdk package is installed, rendering text in a serif font falls back to the default, which is "Lucida Sans" - ie choosing font "Serif" gives sans-serif text.

Several solutions.

1. Remove custom font configuration for Ubuntu and use the default "" which maps serif/sans to Lucida, as supplied by Sun.

2. Make sun-java6-jdk depend on dejavu font being installed. If this route is taken, consider japanese, korean and chinese as well which depend on fonts "kochi mincho", "vigothic", "batang", "dotum" and "arphic"

3. Fix to fall back to Lucida Serif for "serif" if dejavu is not installed. Probably the best option.

Release: 10.04 onwards
sun-java6-jdk version: various, but at least since 1.6.0_17

Mike (mike32767) wrote :

This still applies in 1.6.0_26.

To speed things along I'm attaching a test case. To reproduce the issue.

1. Ensure the "dejavu" font is not installed - ie ensure package "ttf-dejavu" is not installed.
2. Install "sun-java6-jre" package.
3. Run the attached and open the "serif.png" file it creates. Note the lack of serifs.

to fix, either

4a. install "ttf-dejavu" package, or
4b. remove /usr/lib/jvm/java-6-sun/jre/lib/fontconfig.Ubuntu.*

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

Other bug subscribers

Bug attachments