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

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


Hi,
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">
<string>UglyName</string>
</test>
<edit target="font" name="family" mode="assign">
<string>NewName</string>
</edit>
</match>

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?


Regards
James Su