[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-fontconfig
Subject:    [Fontconfig] FcFontSetMatch doesn't produce the same result as
From:       keithp () keithp ! com (Keith Packard)
Date:       2006-08-28 11:24:39
Message-ID: 1156789454.4946.287.camel () neko ! keithp ! com
[Download RAW message or body]

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
specified.

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

vs

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

-- 
keith.packard@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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic