fontconfig.properties cannot handle TTC

Bug #214653 reported by Arne Goetje
4
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

It appears that different font faces of a Truetype Collection (TTC) cannot be used in fontconfig.properties. Although X.org has separate XLFD entries for the different faces, Java still always selects the first fontface of the TTC.

How to test:
1. install ttf-arphic-uming (> 0.2.0)
2. add the following lines to fontconfig.properties:
allfonts.chinese-cn-arphic=-arphic-ar pl uming cn-light-r-normal--*-*-*-*-c-*-iso10646-1
allfonts.chinese-hk-arphic=-arphic-ar pl uming hk-light-r-normal--*-*-*-*-c-*-iso10646-1
allfonts.chinese-tw-arphic=-arphic-ar pl uming tw-light-r-normal--*-*-*-*-c-*-iso10646-1

All of these have a fontpath of /usr/share/fons/truetype/arphic/uming.ttc

Make these fonts to be preferred:
ex.:
sequence.allfonts.UTF-8=latin1,chinese-hk-arphic

Try each of the three defined faces separately.

The following fontfaces are available in this ttc:
0: AR PL UMing CN
1: AR PL UMing HK
2: AR PL UMing TW
3: AR PL UMing TW MBE

xlsfonts | grep 'ar pl uming' lists the same XLFDs as above.

In a Java application display the following Unicode codepoints: U+4EE4 令 U+9AA8 骨
The should display different for each font face like shown in the attachment.

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

is this still an issue with karmic?

Changed in openjdk-6 (Ubuntu):
status: New → Incomplete
Revision history for this message
Matthias Klose (doko) wrote :

closing the report, no feedback

Changed in openjdk-6 (Ubuntu):
status: Incomplete → Invalid
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.