[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-fontconfig
Subject:    Re: [Fontconfig] distribute font with application
From:       "Simos Xenitellis" <simos.lists () googlemail ! com>
Date:       2007-07-30 20:07:19
Message-ID: 598e9210707301307r626a6f0fp293cbd9aeefdd8d6 () mail ! gmail ! com
[Download RAW message or body]

On 7/30/07, Peter Shinners <peters@imageworks.com> wrote:
> How can an application add extra "font" directories at startup? Is there
> an environment variable that allows adding directories to the fontconfig
> search path?
>
> We have a few .ttf files we would like to distribute internally with an
> application. This is using Qt4 built with fontconfig support. Adding the
> fonts to all user's or all system's font directories is not a good option.
>
> These are systems running CentOS4, fontconfig version 2.2.3.

What you can do is place the fonts in something like
/usr/share/myapplication/fonts
when the administrator installs the application.
Then, when the user runs the application for the first time, you put a
copy of the fonts into ~/.fonts/myapplication/

Per user fonts are located by default in ~/.fonts/. The fonts are
discovered even if they are in subdirectories.

Simos
_______________________________________________
Fontconfig mailing list
Fontconfig@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic