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

James Su fontconfig@fontconfig.org
Thu, 17 Apr 2003 18:57:18 +0800

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