[Fontconfig] How do I rename a font within fontconfig?

James Su suzhe at turbolinux.com.cn
Thu Apr 17 20:57:18 EST 2003

I have a ttf font with very ugly name, so I want to rename it within
fontconfig, then user will feel more comfortable. I add the following
pieces of code into fonts.conf:

<match target="font">
<test name="family" compare="eq">
<edit target="font" name="family" mode="assign">

But no use. Replacing the mode to prepend and append are also no effect.
Could you please tell me how can I do that correctly?

James Su

More information about the Fontconfig mailing list