Changing default path to install fonts?

Dan Nicholson dbn.lists at gmail.com
Tue Oct 6 12:15:03 PDT 2009


On Tue, Oct 6, 2009 at 11:08 AM, Alan Coopersmith
<Alan.Coopersmith at sun.com> wrote:
> Alan Coopersmith wrote:
>> +AC_DEFUN([XORG_FONTDIR],[
>> +     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.
> packages.debian.org says they're using /usr/share/fonts/X11.
> Gentoo appears to use /usr/share/fonts (without the X11).
>
> I'm planning on moving the OpenSolaris font packages to install under
> /usr/share/fonts soon as well.
>
> It seems there's at least critical mass of distros behind ${datadir}
> instead of ${libdir} as a default, but some will still have to use
> --with-fontdir options since we haven't all agreed on whether X11
> still belongs in the path or where.
>
> Any other votes?   Should a variable be added to the fontutils.pc
> so that it only needs to be set when building fontutils and all other
> packages inherit from there?

I think that's definitely the right thing to do. However, can you
check that all the modules follow this default? Last time I tried to
install the fonts in ${datadir}, I found there were quite a few
modules that had to be told about it. But as long as you can get all
the necessary modules using XORG_FONTDIR, it should be easy.

--
Dan


More information about the xorg-devel mailing list