[Fontconfig] how to read config file from current dir (relative to a binary using the lib)

Akira TAGOH akira at tagoh.org
Mon Sep 3 01:28:18 PDT 2012


On Mon, Sep 3, 2012 at 12:05 PM, Pavel Koshevoy <pkoshevoy at gmail.com> wrote:
> I've seen this issue brought up on the ffmpeg-devel mailing list, and here.
> I hope there will be a positive resolution.  If relative-to-exe fontconfig
> search path is not possible perhaps ffmpeg developers will be more amiable
> to adding a fontconfig configuration parameter to the drawtext filter (so it
> can pass correct fonts.conf file path to libass, which will in turn
> initialize fontconfig).

They could use FcConfigAppFontAddFile() and/or FcConfigAppFontAddDir()
to load own fonts.conf and rules. I guess it may be somewhat
acceptable for that project since they statically linked fontconfig?

-- 
Akira TAGOH


More information about the Fontconfig mailing list