Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Aug 2013 13:30:40 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Kevin Oberman <rkoberman@gmail.com>
Cc:        FreeBSD GNOME Users <gnome@freebsd.org>, Tijl Coosemans <tijl@coosemans.org>, FreeBSD Ports ML <freebsd-ports@freebsd.org>
Subject:   Re: fontconfig madness
Message-ID:  <20130817203040.GA70730@troutmask.apl.washington.edu>
In-Reply-To: <CAN6yY1vm5Bes8Yc_DFYO=JxU4QNtqGWCaWPAHwcg1v=UTjRxbA@mail.gmail.com>
References:  <20130812192745.GA80894@troutmask.apl.washington.edu> <20130817114412.44885d21@kalimero.tijl.coosemans.org> <20130817163929.GA69757@troutmask.apl.washington.edu> <CAN6yY1sbnsfgHDCfjh5xX2dcsqvq_4dnpYV3GFCQd7RwO=2K7g@mail.gmail.com> <20130817180056.GA70018@troutmask.apl.washington.edu> <CAN6yY1vm5Bes8Yc_DFYO=JxU4QNtqGWCaWPAHwcg1v=UTjRxbA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130817203040.GA70730>