[Fontconfig] Making fontconfig aware of the fonts in certain directories

Ambrose Li acli at ada.dhs.org
Mon Apr 4 09:02:27 EST 2005

On Sun, Apr 03, 2005 at 11:57:16PM +0100, Paul Smith wrote:
> Thanks, Ambrose. My  /etc/fonts/local.conf file is:
> <?xml version="1.0"?>
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> <!-- /etc/fonts/local.conf file for local customizations -->
> <fontconfig>
> <!--
>   Enable sub-pixel rendering
> 	<match target="font">
> 		<test qual="all" name="rgba">
> 			<const>unknown</const>
> 		</test>
> 		<edit name="rgba" mode="assign"><const>rgb</const></edit>
> 	</match>
> -->
> </fontconfig>
> It does not look like yours. Is this normal?

Yes, this is normal. Actually my fonts.conf file is much longer too.
You just insert the <dir>...</dir> lines before the "</fontconfig>"
line (you might need to copy the lines from /etc/fonts/fonts.conf
before adding your new directories); you also need to run fc-cache
after editing the file.

(Don't add the <dir> lines between the <!-- and the -->.)


More information about the Fontconfig mailing list