Re: distribute font with application

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


>>>>> "Peter" == Peter Shinners <peters@xxxxxxxxxxxxxx> writes:

Peter> How can an application add extra "font" directories at startup?
Peter> Is there an environment variable that allows adding directories
Peter> to the fontconfig search path?

Check out the function FcConfigAppFontAddDir().

It lets you add a directory of application-specific fonts to the config.
There is also FcConfigAppFontAdd() to add a single font file.

They are mentioned in fontconfig(3) and also in the fontconfig-devel

I am not familiar with how Qt interacts with fontconfig.  There may be
something in the Qt api to call those, or you may have to do so manually.

I'd take a look thru the Qt src for where it calls FcInit(),
FcInitLoadConfig() and/or FcInitLoadConfigAndFonts().

James Cloos <cloos@xxxxxxxxxxx>         OpenPGP: 1024D/ED7DAEA6
Fontconfig mailing list

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

  Powered by Linux