← Back to team overview

openjdk team mailing list archive

Bug#513997: /etc/java-6-openjdk/fontconfig.properties.src contains incorrect path for DejaVu fonts

 

Package: openjdk-6-jre-headless
Version: 6b11-9.1
Tags: patch
Severity: important

Hello,

The openjdk-6-jre-headless package contains a configuration file used
for configuring the fonts used by OpenJDK. This file is:

/etc/java-6-openjdk/fontconfig.properties.src

If one takes a look at the mentioned file, one can see that the lines
which are expected to contain the paths for DejaVu fonts are incorrect:

Here's an example:

=== 8< ===
filename.DejaVu_Sans=/usr/share/fonts/ttf-dejavu/DejaVuSans.ttf
=== >8 ===

As you can verify on a running system, the DejaVu fonts installed
by the "ttf-dejavu" package are not installed in

/usr/share/fonts/ttf-dejavu/

but in

/usr/share/fonts/truetype/ttf-dejavu/

So the paths used by the "openjdk-6-jre-headless" package are incorrect.

I checked the file listings for the "ttf-dejavu-core" package in Lenny
and Sid, and can confirm that this problem exists in both Lenny and Sid.

Attached is a patch which fixes this issue.

Thanks in advance,

M. Vefa Bicakci

--- fontconfig.properties.src.original	2009-01-15 16:40:07.000000000 -0500
+++ fontconfig.properties.src	2009-01-19 00:25:29.000000000 -0500
@@ -177,20 +177,20 @@
 
 # Font File Names
 
-filename.DejaVu_Sans=/usr/share/fonts/ttf-dejavu/DejaVuSans.ttf
-filename.DejaVu_Sans_Bold=/usr/share/fonts/ttf-dejavu/DejaVuSans-Bold.ttf
-filename.DejaVu_Sans_Oblique=/usr/share/fonts/ttf-dejavu/DejaVuSans-Oblique.ttf
-filename.DejaVu_Sans_Bold_Oblique=/usr/share/fonts/ttf-dejavu/DejaVuSans-BoldOblique.ttf
-
-filename.DejaVu_Sans_Mono=/usr/share/fonts/ttf-dejavu/DejaVuSansMono.ttf
-filename.DejaVu_Sans_Mono_Bold=/usr/share/fonts/ttf-dejavu/DejaVuSansMono-Bold.ttf
-filename.DejaVu_Sans_Mono_Oblique=/usr/share/fonts/ttf-dejavu/DejaVuSansMono-Oblique.ttf
-filename.DejaVu_Sans_Mono_Bold_Oblique=/usr/share/fonts/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf
-
-filename.DejaVu_Serif=/usr/share/fonts/ttf-dejavu/DejaVuSerif.ttf
-filename.DejaVu_Serif_Bold=/usr/share/fonts/ttf-dejavu/DejaVuSerif-Bold.ttf
-filename.DejaVu_Serif_Oblique=/usr/share/fonts/ttf-dejavu/DejaVuSerif-Oblique.ttf
-filename.DejaVu_Serif_Bold_Oblique=/usr/share/fonts/ttf-dejavu/DejaVuSerif-BoldOblique.ttf
+filename.DejaVu_Sans=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
+filename.DejaVu_Sans_Bold=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
+filename.DejaVu_Sans_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf
+filename.DejaVu_Sans_Bold_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf
+
+filename.DejaVu_Sans_Mono=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
+filename.DejaVu_Sans_Mono_Bold=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf
+filename.DejaVu_Sans_Mono_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Oblique.ttf
+filename.DejaVu_Sans_Mono_Bold_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf
+
+filename.DejaVu_Serif=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf
+filename.DejaVu_Serif_Bold=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Bold.ttf
+filename.DejaVu_Serif_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-Oblique.ttf
+filename.DejaVu_Serif_Bold_Oblique=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif-BoldOblique.ttf
 
 filename.-misc-ar_pl_shanheisun_uni-medium-r-normal--*-*-*-*-p-*-iso10646-1=/usr/share/fonts/truetype/arphic/uming.ttf
 filename.-misc-baekmuk_batang-medium-r-normal--*-%d-*-*-c-*-*-*=/usr/share/fonts/truetype/baekmuk/batang.ttf