Comment 62 for bug 937200

Revision history for this message
Ryan Tandy (rtandy) wrote :

getFontConfig (fontpath.c:773) is interesting. For each of the fontConfigNames defined at FontConfigManager.java:82, it runs code similar to "fc-match -s $fontConfigName | head -n 10". The fonts returned from that are registered with rank 2 (Font2D.FONT_CONFIG_RANK). Later, if a requested font isn't found in that set, the system font paths are scanned for TTFs which are all registered with rank 3 (Font2D.TTF_RANK).

Here's an odd thing I noticed. In a minimal chroot with fontconfig (which pulls in fonts-dejavu-core) and ttf-ubuntu-font-family installed:

~$ fc-match -s sans:regular:roman | grep Ubuntu
Ubuntu-C.ttf: "Ubuntu Condensed" "Regular"
Ubuntu-R.ttf: "Ubuntu" "Regular"

and after installing fonts-unfonts-core:

~$ fc-match -s sans:regular:roman | grep Ubuntu
Ubuntu-C.ttf: "Ubuntu Condensed" "Regular"

This seems like a bug but I don't know which package would be responsible: fontconfig, fonts-unfonts-core, or ttf-ubuntu-font-family? Is this what doko was talking about in #54?

The above notwithstanding, I'm also still suspicious about the rank comparison in SunFontManager that I already mentioned...