[Fontconfig] Do you know how to use binary operators like or, and in fonts.conf?

Keith Packard keithp at keithp.com
Sat Dec 24 20:20:17 PST 2005


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


More information about the Fontconfig mailing list