fontconfig: Branch 'master'

View: New views
1 Messages — Rating Filter:   Alert me  

fontconfig: Branch 'master'

by Behdad Esfahbod-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 src/fclist.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 792ce655cb06c678d4a4ff091866fd0531b141fb
Author: Karl Tomlinson <karlt@...>
Date:   Wed Jul 22 08:39:23 2009 -0400

    Don't change the order of names unnecessarily (#20128)
   
    so that TT_NAME_ID_PREFERRED_FAMILY is consistently preferred over
    TT_NAME_ID_FONT_FAMILY when both are specified for the default language.

diff --git a/src/fclist.c b/src/fclist.c
index 6103408..d804c15 100644
--- a/src/fclist.c
+++ b/src/fclist.c
@@ -350,7 +350,10 @@ FcGetDefaultObjectLangIndex (FcPattern *font, FcObject object)
     if (value.type == FcTypeString)
     {
  FcLangResult res = FcLangCompare (value.u.s, lang);
- if (res == FcLangEqual || (res == FcLangDifferentCountry && idx < 0))
+ if (res == FcLangEqual)
+    return i;
+
+ if (res == FcLangDifferentCountry && idx < 0)
     idx = i;
     }
  }
_______________________________________________
Fontconfig mailing list
Fontconfig@...
http://lists.freedesktop.org/mailman/listinfo/fontconfig