Hi, Languages are tagged using an RFC-3066 compatible naming and occur in two parts -- the ISO639 language tag followed a hyphen and then by the ISO 3166 country code. ... So try "zh-cn" instead. You can also try a "FC_DEBUG=127 fc-list" to see that. Best regards Wang WenRui On Tue, May 20, 2003 at 09:43:21AM +0800, James Su wrote:> Hi, > 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> > ... > </match> > > But no effect. Could you please tell me how can I do that? > > Regards > James Su > > > _______________________________________________ > Fontconfig mailing list > Fontconfig@fontconfig.org > http://mail.fontconfig.org/mailman/listinfo/fontconfig
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@fontconfig.org >http://mail.fontconfig.org/mailman/listinfo/fontconfig > > >
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
Hi, 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> ... </match> But no effect. Could you please tell me how can I do that? Regards James Su