#2448: Fontconfig error with cairo on Windows
--------------------------+-------------------------------------------
Reporter: annakrat | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.2
Component: Display | Version: 7.0.0
Resolution: | Keywords: font, text, legend, scale bar
CPU: Unspecified | Platform: MSWindows 8
--------------------------+-------------------------------------------
Comment (by hellik):
Replying to [comment:38 neteler]:
> Replying to [comment:37 annakrat]:
> > Unfortunately built 66083 still has the same problem. The content of
fontcap seems to be the same. When I display legend, I get this in
terminal, am not sure if it was there before
> > {{{
> > C:\Users\anna>Fontconfig error: Cannot load default config file
> > }}}
>
> In stackexchange I found a hint that this file might be needed (no idea
how to map that in Windows):
>
> /etc/fonts/fonts.conf
>
> In Linux, it comes with the "fontconfig" package. In OSGeo4W, it should
also be there (please verify):
>
> https://trac.osgeo.org/osgeo4w/wiki/pkg-cairo#Installselectedpackages
>
> Some similar font related discussion here:
>
> https://github.com/Shoes3/shoes3/issues/46
>
> > {{{
> > GRASS_INFO_WARNING(2248,1): Unable to open font map 'C:\Program Files
(x86)\GRASS GIS 7.1.svn/fonts/.hmp': No such file or directory.
> > }}}
>
> I see that \ and / are being used but especially, that the font name is
missing.
the odd thing is that it works nicely on some win boxes (e.g. here for me
on win 7), and on some not.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2448#comment:40>
GRASS GIS <https://grass.osgeo.org>