[GRASS-dev] [GRASS GIS] #2448: Fontconfig error with cairo on Windows

#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:63 annakrat]:
> Replying to [comment:62 hellik]:
> > can you look at the permissions of the $installdir/etc folder and the
fontcap file by right click on folder/file -> properties -> security tab?
>
> There are different groups, I don't know which one are you interested
in:
>
> For etc folder:
>
> * All application packages: Allow Read & execute, Read
> * Creator owner: Special permissions
> * System: Allow Full control, Modify, Read & execute, List folder
contents, Read, Write
> * Administrators: the same as System
> * Users: the same as All application packages
>
> For fontcap folder:
>
> * All application packages: Allow Read & execute, List folder contents,
Read
> * System: Allow Full control, Modify, Read & execute, List folder
contents, Read, Write
> * Administrators: the same as System
> * Users: the same as System, but the check marks of Full control,
Modify and Write are bold for some reason

could you add in following file

''C:\Program Files (x86)\GRASS GIS 7.1.svn\etc\env.bat''

this line?

{{{
set GRASS_FONT_CAP=%TEMP%\fontcap
}}}

then start a windows console and type

{{{
echo %TEMP%
}}}

to look to where %TEMP% shows, e.g.
''C:\Users\userxyz\AppData\Local\Temp''

start a normal winGRASS session, run g.mkfontcap. and see if the file is
written in this folder?

tested here: the fontcap file is written to
''C:\Users\userxyz\AppData\Local\Temp\fontcap''

a workaround during installation may be to add
GRASS_FONT_CAP=%TEMP%\fontcap as environment variable to
run_gmkfontcap.bat and then copy back the file to ''C:\Program Files
(x86)\GRASS GIS 7.1.svn\etc'' in order to be available to for all users of
a windows box ...

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2448#comment:65&gt;
GRASS GIS <https://grass.osgeo.org>