diff --git a/ChangeLog b/ChangeLog index d5224a7..23e74e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-02-10 Takashi Iwai + reviewed by: plam + * src/fcmatch.c (FcFontSetMatch): + + Don't kill fonts because they don't declare an element that's + being matched on. + 2006-02-09 Patrick Lam * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave, FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite): diff --git a/src/fcmatch.c b/src/fcmatch.c index cf702c6..30336ff 100644 --- a/src/fcmatch.c +++ b/src/fcmatch.c @@ -673,6 +673,10 @@ FcFontSetMatch (FcConfig *config, } } + /* We had no matching, just try the next one */ + if (score == 1e99) + continue; + /* If there's a previous champion, and current score * beats previous best score, on this element, then * knock out the previous champion and anything