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

GRASS GIS trac at osgeo.org
Thu Sep 10 08:43:12 PDT 2015


#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:43 wenzeslaus]:
 > Replying to [comment:42 annakrat]:
 > > Replying to [comment:41 hellik]:
 > > > I've done some research, file permissions changed a lot between
 Windows versions (7,8,10).
 > >
 > > Unfortunately, no change. I wonder if the problem is something
 different then permissions. The problem is I don't get any error during
 installation. Maybe we could print more messages during the font
 configuration? Thanks for all the work on this.
 >
 > What about that hardcoding of some fonts for MS Windows into a MS
 Windows specific file? This is a great workaround and I have no idea how
 it should be done but it seems that it is appropriate on a platform where
 API is changing often and is under-documented.

 see https://grass.osgeo.org/grass70/manuals/g.mkfontcap.html

 there is a -s flag:

 -s  Write font configuration file to standard output instead of
 $GISBASE/etc

 a feasable way may be:

 - another flag e.g. to write fontcap file to %APPDATA%GRASS7 where already
 the addons are stored
 - all the modules which are working with fonts seems to search for the
 fontcap file in $GISBASE/etc; adding a second search path (e.g.
 %APPDATA%GRASS7) to these modules if the file is not available in
 $GISBASE/etc

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2448#comment:45>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list