fontconfig: Branch 'fc-2_4-keithp'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 src/fcmatch.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree 3bb1812f0d173b153415e2191ecdd27a95fc4b05 (from cfccd4873a44da5b041368d5fca4f05180dcf041)
Author: Keith Packard <keithp@xxxxxxxxxxxxxxx>
Date:   Fri Sep 1 15:33:27 2006 -0700

    Fonts matching lang not territory should satisfy sort pattern lang.
    
    A pattern specifying 'Chinese' (:lang=zh) without a territory should be
    satisfied by any font supporting any Chinese lang. The code was requiring
    that the lang tags match exactly, causing this sort to fail.

diff --git a/src/fcmatch.c b/src/fcmatch.c
index d688c98..e7a70ef 100644
--- a/src/fcmatch.c
+++ b/src/fcmatch.c
@@ -730,7 +730,7 @@ FcFontSetSort (FcConfig	    *config,
 	 * If this node matches any language, go check
 	 * which ones and satisfy those entries
 	 */
-	if (nodeps[f]->score[MATCH_LANG_INDEX] < nPatternLang)
+	if (nodeps[f]->score[MATCH_LANG_INDEX] < 200)
 	{
 	    for (i = 0; i < nPatternLang; i++)
 	    {
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux