Changing default path to install fonts?

Alan Coopersmith Alan.Coopersmith at Sun.COM
Tue Oct 6 13:55:56 PDT 2009

Julien Cristau wrote:
> On Tue, Oct  6, 2009 at 11:08:37 -0700, Alan Coopersmith wrote:
>> Alan Coopersmith wrote:
>>> +	fontdir="${libdir}/X11/fonts/$1"
>> As long as I'm preparing for a mass font module update, should
>> this default path become ${datadir}/X11/fonts instead?
>> It looks like Fedora & Ubuntu install under /usr/share/X11/fonts.
>> says they're using /usr/share/fonts/X11.
>> Gentoo appears to use /usr/share/fonts (without the X11).
> Pretty sure Ubuntu uses /usr/share/fonts/X11 as well, they rebuild most
> of the Debian packages with no source changes.  It looks like dapper
> (6.06) used X11/fonts, but IIRC the path was changed when modular X made
> it into Debian.

Oops, guess I was looking at old bug reports in launchpad.

Sounds like ${datadir}/fonts/X11 is the most common default then.

I'm testing a fontutil.m4 update that will change the XORG_FONTDIR macro to use:

# Offer a --with-fontdir flag to control directory for font installation
# Default is the specified subdir of the font parent directory.
# Font parent directory is the first found from:
#	--with-fontparentdir
#	pkg-config --variable=fontdir fontutil
#	${datadir}/fonts/X11

(while "fontparentdir" is awkward, it's also less disruptive to current users
 & distros than redefining --with-fontdir to specify the parent and adding
 some other --with option if they want to specify the full path).

	-Alan Coopersmith-           alan.coopersmith at
	 Sun Microsystems, Inc. - X Window System Engineering

More information about the xorg-devel mailing list