]> git.wh0rd.org - fontconfig.git/commit
[fcmatch] Use larger multipliers to enforce order
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 1 Jan 2009 00:35:27 +0000 (19:35 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Sat, 14 Feb 2009 00:54:05 +0000 (16:54 -0800)
commitc7641f2872329197250db6ffe194df3d33ff42b3
tree2c75fc5cfeca37a0c414755bbaaaeb0bd96c5ab2
parent1b43ccc805f26a78934267d92275cd19b5648e91
[fcmatch] Use larger multipliers to enforce order

Previously the matcher multiplied comparison results by 100 and added
index value to it.  With long lists of families (lots of aliases),
reaching 100 is not that hard.  That could result in a non-match early
in the list to be preferred over a match late in the list.  Changing
the multiplier from 100 to 1000 should fix that.

To keep things relatively in order, the lang multiplier is changed
from 1000 to 10000.
src/fcmatch.c