]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcmatch.c
[fcmatch] Use larger multipliers to enforce order
[fontconfig.git] / src / fcmatch.c
index ac63fbef6e9c3d1bb392041d0990c1cb8f54b23e..4d20a61fc9b7f09d702f4bb8641b69dee8ff9386 100644 (file)
@@ -328,7 +328,7 @@ FcCompareValueList (FcObject         object,
                *result = FcResultTypeMismatch;
                return FcFalse;
            }
-           v = v * 100 + j;
+           v = v * 1000 + j;
            if (v < best)
            {
                if (bestValue)
@@ -768,7 +768,7 @@ FcFontSetSort (FcConfig         *config,
            }
        }
        if (!satisfies)
-           nodeps[f]->score[MATCH_LANG_INDEX] = 1000.0;
+           nodeps[f]->score[MATCH_LANG_INDEX] = 10000.0;
     }
 
     /*