I need some help with configuration because I''m unfamiliar with (and somehow can''t get used to) fontconfig''s kind of configuration files. Here is my problem: I''m using a truetype font name A. This font is great, but unfortunately gets ugly when rendered in bold. There is a font B which is similiar to A and available in good bold quality. What I like to do now, is: Use A whenever requested style is ''normal'' and B else. So I need a configuration for: if (family == A) { if (style == normal) return A; else return B; } Can someone please help. Ingo
Really nobody familiar with the config file syntax? Even no idea whether it is possible or not what I want to do? Ingo
Ingo Brueckl wrote:> Really nobody familiar with the config file syntax?I wasn''t subscribed back then ;)> Even no idea whether it is possible or not what I want to do?It is. Just a quick example for you. <match target="pattern"> <test name="family"><string>Times New Roman</string></test> <test name="weight" compare="more_eq"><const>bold</const></test> <edit name="family" mode="prepend"><string>Arial</string></edit> </match> -- The fact is, most software is crap, and most software developers are lazy and stupid. Same as most customers are stupid too. -- Hua Zhong, Linux Kernel Mailing List
Krzysztof Kotlenga writes: > It is. Just a quick example for you. > <match target="pattern"> > <test name="family"><string>Times New Roman</string></test> > <test name="weight" compare="more_eq"><const>bold</const></test> > <edit name="family" mode="prepend"><string>Arial</string></edit> > </match> Thank you so much, you made my day! It actually only worked with mode="assign" (no idea why), but it worked. Ingo