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

Akira TAGOH akira at tagoh.org
Mon Aug 27 18:15:07 PDT 2012


On Tue, Aug 28, 2012 at 9:48 AM, Helmut Tessarek <ml at evermeet.cx> wrote:
> The problem is that it does not work. I tried in ffmpeg.c, as well as in
> libavfilter/vf_drawtext.c and it is just not working.
>
> There is apparently no way to get ffmpeg to use ./cfg/ as the config path for
> fontconfig.
> The only way seems to be to set the env variable _before_ starting ffmpeg.
> If you set it in ffmpeg, it is ignored.
>
> Very weird, since it does not make any sense.

Not that weird if it's a separate process and it's not on parent-child
relationship, because the env vars that is set on the child process
isn't reflected to the parent nor another child processes. you have to
do it on the parent process before starting a child process or wrap it
up with the shell script or the batch file.

-- 
Akira TAGOH


More information about the Fontconfig mailing list