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

Ambrose Li acli at ada.dhs.org
Mon Apr 4 08:46:43 EST 2005


Hi

On Sun, Apr 03, 2005 at 11:39:38PM +0100, Paul Smith wrote:
> Dear All
> 
> Is it possible to make fontconfig aware of the fonts in the following
> directories?
> 
> /usr/share/texmf/fonts/type1/public/cm-super/
> /usr/share/texmf/fonts/afm/public/cm-super/

just edit /etc/fonts/local.conf and add more directories. If you
do not already have a local.conf file, the new file should look
like this:

	<?xml version="1.0"?>
	<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
	<!-- ~/.fonts.conf for per-user font configuration -->
	<fontconfig>
		<dir>some-directory</dir>
		<dir>another-directory</dir>
		<dir>more directories</dir>
		<dir>~/.fonts</dir>
	</fontconfig>

When I first did this, you need to also copy the directories
that are in /etc/fonts/fonts.conf (or else those directories
won't be considered). I don't know if this is still the case.

> 
> Thanks in advance,
> 
> Paul

Regards,
Ambrose




More information about the Fontconfig mailing list