This comes from this change in src/freetype.c:
--- src/fcfreetype.c.orig       2006-12-03 15:21:25.000000000 +0000
+++ src/fcfreetype.c    2006-12-03 14:59:31.000000000 +0000
@@ -1196,6 +1196,7 @@
                    continue;

                switch (sname.name_id) {
+               case TT_NAME_ID_PREFERRED_FAMILY:
                case TT_NAME_ID_FONT_FAMILY:
 #if 0
                case TT_NAME_ID_PS_NAME:
@@ -1225,5 +1226,6 @@
                    np = &nfullname;
                    nlangp = &nfullname_lang;
                    break;
+               case TT_NAME_ID_PREFERRED_SUBFAMILY:
                case TT_NAME_ID_FONT_SUBFAMILY:
                    if (FcDebug () & FC_DBG_SCANV)

DejaVuSansCondensed.ttf has
Family: DejaVu Sans Condensed
Subfamily: Book
Preferred Family: DejaVu Sans
Preferred Subfamily: Condensed

and fontconfig 2.4.2, unlike 2.4.1, detects and matches against the
preferred family as well as the family, but without considering that the
right family name needs to be matched with the right subfamily.

-- 
Martin Orr

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to