[Fontconfig] /usr/local support

James Cloos cloos at jhcloos.com
Sun Aug 5 14:16:14 PDT 2007


>>>>> "Damjan" == Damjan Jovanovic <damjan.jov at gmail.com> writes:

Damjan> the suggestions that were given (install them into a custom
Damjan> directory and copy to ~/.fonts at runtime, call some fontconfig
Damjan> function that adds a custom search directory, ...)  seem
Damjan> wasteful/ugly.

While I agree completely that the first is inelegant, that latter is the
proper way to handle application-specific fonts.

What you are shooting for is better handling of fonts bundled with apps,
which is a different problem.

Some apps want to use some fonts which are of no value to (most) other
apps, or which have restrictive licensing which prohibits system-wide
installation.  That is what the app-specific support in fontconfig is
for.  Those fonts should go in ${prefix}/share/${app}/fonts if prefix
is eg /usr or /usr/local, or ${prefix}/share/fonts if prefix has the
app's name in it, such as /opt/${app}, /pkg/${app}, /usr/pkg/${app},
et cetera.

OTOH, fonts which are simply bundled should go in a subdir of
${prefix}/share/fonts specific to the package, as per your proposal.

-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6


More information about the Fontconfig mailing list