[GRASS-dev] [GRASS GIS] #2784: add a g.mkfontcap run for OSGeo4W wingrass

GRASS GIS trac at osgeo.org
Sat Oct 31 03:17:41 PDT 2015


#2784: add a g.mkfontcap run for OSGeo4W wingrass
--------------------------+-------------------------
  Reporter:  hellik       |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  critical     |  Milestone:  7.0.2
 Component:  Display      |    Version:  svn-trunk
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MSWindows 7
--------------------------+-------------------------

Comment (by hellik):

 Replying to [ticket:2784 hellik]:
 >
 > the font paths in OSGeo4W wingrass shows to the paths of the build
 server/environment and not to the local ones.
 >
 > there is
 https://trac.osgeo.org/grass/browser/grass/trunk/mswindows/osgeo4w/postinstall.bat
 >
 > adding similar we do for the standalone installer:
 >
 > {{{
 >     FileWrite $0 'rem #$\r$\n'
 > 547           FileWrite $0 'rem # Run g.mkfontcap outside a grass
 session during installation$\r$\n'
 > 548           FileWrite $0 'rem #$\r$\n'
 > 549           FileWrite $0 'rem
 #########################################################################$\r$\n'
 > 550           FileWrite $0 'echo Setup of
 WinGRASS-${VERSION_NUMBER}$\r$\n'
 > 551           FileWrite $0 'echo Generating the font configuration file
 by scanning various directories for fonts.$\r$\n'
 > 552           FileWrite $0 'echo Please wait. Console window will close
 automatically ....$\r$\n'
 > 553           FileWrite $0 '$\r$\n'
 > 554           FileWrite $0 'rem set gisbase$\r$\n'
 > 555           FileWrite $0 'set GISBASE=$INSTALL_DIR$\r$\n'
 > 556           FileWrite $0 '$\r$\n'
 > 557           FileWrite $0 'rem set path to freetype dll$\r$\n'
 > 558           FileWrite $0 'set
 FREETYPEBASE=$INSTALL_DIR\extrabin;$INSTALL_DIR\msys\bin;$INSTALL_DIR\lib$\r$\n'
 > 559           FileWrite $0 '$\r$\n'
 > 560           FileWrite $0 'rem set dependecies path$\r$\n'
 > 561           FileWrite $0 'set PATH=%FREETYPEBASE%;%PATH%$\r$\n'
 > 562           FileWrite $0 '$\r$\n'
 > 563           FileWrite $0 'rem GISRC must be set$\r$\n'
 > 564           FileWrite $0 'set GISRC=dummy$\r$\n'
 > 565           FileWrite $0 '$\r$\n'
 > 566           FileWrite $0 'rem run g.mkfontcap outside a grass
 session$\r$\n'
 > 567           FileWrite $0 '"%GISBASE%\bin\g.mkfontcap.exe" -o$\r$\n'
 > }}}
 >
 > should solve this problem

 patch for trunk accordingly above attached. reviewing welcome.

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



More information about the grass-dev mailing list