date: 2003/04/24 15:29:33; author: keithp; state: Exp; lines: +4 -4
FcFontList broken when presented a charset - was comparing inclusion in the
was done by changing FcConfigCompareValue() to swap the order of comparison
for FcOpContains/FcOpNotContains, e.g:
- /* m contains v if v is a subset of m */
- ret = FcCharSetIsSubset (v.u.c, m.u.c);
+ /* v contains m if m is a subset of v */
+ ret = FcCharSetIsSubset (m.u.c, v.u.c);
But that broke using "contains" in fonts.conf:
<test name="lang" compare="contains">
Now means "is the fonts set of languages contained with "ja".
Sigh. Looks like it's time for a more comprehensive review of the operators to
make sure the order makes sense in every case. I'll note that FcOpContains
also breaks FcFontList -- list 'Courier 10 Pitch' and you get 'Courier' as well.
This was fixed back in July after extensive messing around with operator ordering.
Any hope of a backport to the stable branch? 2.2.1 has serious problems
in this area.