[Fontconfig] How can I match fonts with their lang?

James Su suzhe at turbolinux.com.cn
Tue May 20 17:06:39 EST 2003


Hi,
I wrote a patch to fix contains op for string and langset, see 
http://fontconfig.org/cgi-bin/bugzilla/show_bug.cgi?id=89

Regards
James Su

Keith Packard wrote:

>Around 9 o'clock on May 20, James Su wrote:
>
>  
>
>>I want to match fonts with their lang tag, so I add following config
>>into fonts.conf:
>>
>><match target="font">
>><test name="lang" compare="contains">
>><string>zh</string>
>></test>
>>    
>>
>
>Use compare="equal" instead of "contains".  I'm not sure 'contains' has 
>sensible semantics for language sets.
>
>-keith
>
>
>
>_______________________________________________
>Fontconfig mailing list
>Fontconfig at fontconfig.org
>http://mail.fontconfig.org/mailman/listinfo/fontconfig
>
>  
>







More information about the Fontconfig mailing list