fontconfig madness

Steve Kargl sgk at troutmask.apl.washington.edu
Sat Aug 17 20:30:44 UTC 2013


On Sat, Aug 17, 2013 at 12:45:27PM -0700, Kevin Oberman wrote:
> On Sat, Aug 17, 2013 at 11:00 AM, Steve Kargl <
> sgk at troutmask.apl.washington.edu> wrote:
> 
> >
> > I can't find the site where I got this impression of the deprecation.
> > It seems that freetype2 wants to enforce the layout from XDG base
> > directory specification.  If one looks in /usr/local/etc/fonts/fonts.conf,
> > one sees
> >
> > <!-- Font cache directory list -->
> >
> >         <cachedir>/var/db/fontconfig</cachedir>
> >         <cachedir prefix="xdg">fontconfig</cachedir>
> >         <!-- the following element will be removed in the future -->
> >         <cachedir>~/.fontconfig</cachedir>
> >
> > AFAICT, that future is now.
> >
> 
> Ahh. I found it and it looks like the behavior you are seeing is not
> intended.

Yeah, I thought it was strange to have a fontconfig/ directory being
dropped in CWD.

> *$XDG_CACHE_HOME/fontconfig/*.cache-** and * ~/.fontconfig/*.cache-** is
> the conventional repository of font information that isn't found in the
> per-directory caches. This file is automatically maintained by fontconfig.
> please note that ~/.fontconfig/*.cache-* is deprecated now. it will not be
> read by default in the future version.
> 
> fontconfig now assumes that users have an *$XDG_CACHE_HOME *where it will
> keep its cache. I'm guessing that the conversion has not happened in
> FreeBSD because the version of Gnome is older than this change, so when it
> does not find it, it uses the cwd. I assume that XDG_CACHE_HOME should be
> in .local, but it is not getting defined.
> 
> This really should be fixed, one way or another. (Your way works, but
> getting the newer, preferred directory defined is probably the right answer.

I assume the gnome guys will catch up with this issue someday. I
have a solution/work-around that works.

-- 
Steve


More information about the freebsd-gnome mailing list