[Fontconfig] Multiple values in <test> - Simple Solution?

Infinality infinality at infinality.net
Mon Sep 3 14:50:21 PDT 2012


Hi,

I have some configurations that make gratuitous use of multiple values 
in <test>, to group certain families of fonts together, as shown below.  
My understanding is that the only "correct" way to do this now is to 
have an entire 
<match><test><string>NAME</string></test><edit></edit></match> for every 
single family!  Is there any simpler way to do what I would like?  If 
not, is it planned?

Thanks,
Erik


     <match target="font">
         <test name="family">
             <string>Abel</string>
             <string>AR PL ShanHeiSun Uni</string>
             <string>Abril Fatface</string>
             <string>Aclonica</string>
             <string>Acme</string>
             <string>Actor</string>
             <string>Aladin</string>
             <string>Aldrich</string>
             <string>Alex Brush</string>
             <string>Alfa Slab One</string>
             <string>Alike Angular</string>
             <string>Alike</string>
             <string>Allerta Stencil</string>
             <string>Allerta</string>
             <string>Almendra SC</string>
             <string>Almendra</string>
             <string>Amaranth</string>
             <string>American Typewriter</string>
             <string>Andada</string>
             <string>Andika</string>
             <string>Annie Use Your Telescope</string>
             <string>Anton</string>
             <string>Apple Garamond Light</string>
             <string>Apple Garamond</string>
             <string>Apple Symbols</string>
....
....
         </test>
         <edit name="...." mode="assign">
             .....
         </edit>
     </match>


More information about the Fontconfig mailing list