[Fontconfig] How to add custom font files without updating fonts.conf

Raimund Steger rs at mytum.de
Tue Sep 9 02:54:41 PDT 2014


On Mon, September 8, 2014 15:12, Prakhar Mishra wrote:
> Hi ,
>
> I want to know how can I add a custom font directory or just a custom font
> file without editing "fonts.conf" file ?
> (actually my application don't have permission to edit "fonts.conf" file)
>
> is there any environment variable available ?

If you're the application developer, you can use
FcConfigAppFontAddDir(3)/FcConfigAppFontAddFile(3) to add your own fonts
to the running config.

Raimund

-- 
Worringer Str 31 Duesseldorf 40211 DE  home: <rs at mytum.de>
+49-179-2981632 icq 16845346           work: <rs at interface-ag.de>



More information about the Fontconfig mailing list