[Fontconfig] FcFontSetMatch doesn't produce the same result as FcFontSetSort

Keith Packard keithp at keithp.com
Mon Aug 28 11:24:14 PDT 2006

I prefer japanese han glyphs over chinese when loading untagged content,
so I set fontconfig to use lang=en,ja when no language is otherwise

With the optimized FcFontSetMatch, this eliminates all fonts which don't
support Japanese from matching; not the desired result at all.

In any case, the requirement here is that FcFontSetMatch produce the
font at the head of the list produced by FcFontSetSort; the case above
should be easily tested with:

 $ fc-match sans:lang=en,ja


 $ fc-match --sort sans:lang=en,ja | head -1

keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20060828/3bae538e/attachment.pgp

More information about the Fontconfig mailing list