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

GRASS GIS trac at osgeo.org
Wed Jun 10 18:42:34 PDT 2015


#2448: Fontconfig error with cairo on Windows
--------------------------+-------------------------------------------
  Reporter:  annakrat     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.0.1
 Component:  Display      |    Version:  7.0.0
Resolution:               |   Keywords:  font, text, legend, scale bar
       CPU:  Unspecified  |   Platform:  MSWindows 8
--------------------------+-------------------------------------------

Comment (by wenzeslaus):

 `ERROR: GISRC - variable not set` comes from undocumented
 [https://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/env.c?rev=63830#L301
 open_env()] function. I think that

 {{{
 G_set_gisrc_mode(G_GISRC_MODE_MEMORY);
 G_no_gisinit();
 }}}

 in `g.mkfontcap` are trying to account for that but `G_GISRC_MODE_MEMORY`
 is not checked in `open_env()` but only in `read_env()` which is called
 later on. Well, what is called when is actually hard to say because
 `open_env()` calls `read_env()` as well as the other way around. I don't
 have an idea what `G_GISRC_MODE_MEMORY` means and if it is OK to not set
 `GISRC` environmental variable in this case.

 There is no documentation for it and from the code I don't have any clue
 what was the author's intention there. I don't have time to debug line by
 line in order to figure out what is happening there. If somebody knows
 what the code is about and what is the expected behavior, please write
 some documentation. Documentation will help now and certainly safe time in
 the long run.

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



More information about the grass-dev mailing list