Zhe Su
2005-Dec-24 19:51 UTC
[Fontconfig] Do you know how to use binary operators like or, and in fonts.conf?
Hi, I can''t find any example for those kind of binary operators. What I want is to match one of two families and do some modification for that pattern. I tried the following code, but didn''t take effect: <match target="pattern"> <or> <test name="family"><string>Font A</string></test> <test name="family"><string>Font B</string></test> </or> <edit name="family" mode="prepend"> <string>Font C</string> </edit> </match> Do you know what''s wrong with this piece of code? Regards James Su
Keith Packard
2005-Dec-24 20:19 UTC
[Fontconfig] Do you know how to use binary operators like or, and in fonts.conf?
On Sun, 2005-12-25 at 11:52 +0800, Zhe Su wrote:> <or> > <test name="family"><string>Font A</string></test> > <test name="family"><string>Font B</string></test> > </or>Sorry, there''s no ''or'' operator; all conditions are implicitly ''and''ed together. Yes, this means you''ll have to create a separate match operation which duplicates the edit portion with the other test operator. -keith -------------- 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/20051224/9e1b2611/attachment.pgp