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

GRASS GIS trac at osgeo.org
Tue Oct 27 09:10:20 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
 Keywords:               |        CPU:  Unspecified
 Platform:  MSWindows 7  |
-------------------------+-------------------------
 in C:\OSGeo4W\apps\grass\grass-7.0.2RC1\etc\fontcap

 {{{
 cyrilc|Cyrillic|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686-pc-
 mingw32\fonts\cyrilc.hmp|0|utf-8|
 gothgbt|Gothic Great Britain
 triplex|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686-pc-
 mingw32\fonts\gothgbt.hmp|0|utf-8|
 gothgrt|Gothic German triplex|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686
 -pc-mingw32\fonts\gothgrt.hmp|0|utf-8|
 gothitt|Gothic Italian triplex|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686
 -pc-mingw32\fonts\gothitt.hmp|0|utf-8|
 greekc|Greek complex|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686-pc-
 mingw32\fonts\greekc.hmp|0|utf-8|
 greekcs|Greek complex script|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686
 -pc-mingw32\fonts\greekcs.hmp|0|utf-8|
 greekp|Greek plain|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686-pc-
 mingw32\fonts\greekp.hmp|0|utf-8|
 greeks|Greek simplex|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686-pc-
 mingw32\fonts\greeks.hmp|0|utf-8|
 italicc|Italian complex|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686-pc-
 mingw32\fonts\italicc.hmp|0|utf-8|
 italiccs|Italian complex small|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686
 -pc-mingw32\fonts\italiccs.hmp|0|utf-8|
 italict|Italian triplex|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686-pc-
 mingw32\fonts\italict.hmp|0|utf-8|
 romanc|Roman complex|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686-pc-
 mingw32\fonts\romanc.hmp|0|utf-8|
 romancs|Roman complex small|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686-pc-
 mingw32\fonts\romancs.hmp|0|utf-8|
 romand|Roman duplex|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686-pc-
 mingw32\fonts\romand.hmp|0|utf-8|
 romans|Roman simplex|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686-pc-
 mingw32\fonts\romans.hmp|0|utf-8|
 romant|Roman triplex|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686-pc-
 mingw32\fonts\romant.hmp|0|utf-8|
 scriptc|Script complex|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686-pc-
 mingw32\fonts\scriptc.hmp|0|utf-8|
 scripts|Script simplex|0|c:\osgeo4w\usr\src\grass702RC1\dist.i686-pc-
 mingw32\fonts\scripts.hmp|0|utf-8|
 }}}

 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

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



More information about the grass-dev mailing list