[Fontconfig] Portable apps and fontconfig

Akira TAGOH akira at tagoh.org
Mon Jun 23 03:45:07 PDT 2014

On Sun, Jun 22, 2014 at 1:01 PM, Dan Kegel <dank at kegel.com> wrote:
> I'm packaging up a windows app that uses fontconfig, and discovered
> that to get fonts working, I have to put a fonts.conf in
>   c:/Program Files (x86)/Foo/bar/binaries/etc/fonts
> OK, fine, I can do that.  But it's annoying to have to put
> the absolute path to the fonts in fonts.conf.  For one thing,

You mean the place to load fonts, i.e. <dir> elements?

> I might not know where the app is going to be installed.
> For another, I'm really packaging a set of libraries, and I don't
> have control over the final app, so the nice magic keywords
> much good (they're .exe-relative, not .dll-relative).
> What I really really want is another magic keyword that is dll-relative.
> Furthermore, I think at the moment the location of the fonts.conf
> file is hard-coded (right?).  It'd be nice if it could be looked for
> via a dll-relative path.

Well, yes, it is determined at the build time. but can be replaced by
FONTCONFIG_FILE env var at the run time.

> Both of these would only apply when fontconfig was built as a shared library.
> Have patches for these two ideas been considered in the past, and
> would y'all accept such patches if offered?

not that I know of. any patches are welcome though.

> _______________________________________________
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/fontconfig


More information about the Fontconfig mailing list