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...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/937200

Title:
  Fat fonts in Swing applications

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fonts-unfonts-core/+bug/937200/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to