[Fontconfig] distribute font with application

Simon Hausmann simon.hausmann at trolltech.com
Mon Jul 30 15:11:08 PDT 2007


On Monday 30 July 2007 20:50:08 Peter Shinners 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.

If you want to use the fonts only in your application and you are using Qt 4 
then you could just bundle them as Qt resources and make them available to 
your application using QFontDatabase::addApplicationFont.

Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20070731/2c88a5b6/attachment.pgp 


More information about the Fontconfig mailing list