Re: distribute font with application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: This is a digitally signed message part.

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

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux