[GRASS-user] Missing fonts in windows installation

Dear list,

a newbie question follows:

I have managed to install grass64 using latest osgeo4w installer and can now (after a few modifications) run shell scripts in a Msys window. However, I noticed something weird: the fontcap file was referring to a directory which did not exist i.e. to /c/OSGEO4W/apps/grass/grass-6.4.0svn/fonts. I created the dir and ran g.mkfontcap with extradirs=c:/winnnt/fonts and it went through all right. But still, if I’m not mistaken, it seems that I can use only the default font. At least for labels.

Any idea how to fix this? can I just download the fronts from somewhere, install them to the fonts dir, and run the g.mkfontcap again?

Thanks,

ilumas

p.s.

uname -a in msys gives

MINGW32_NT-5.1 1.0.11(0.46/3/2) 2007-01-12 12:05 i686 Msys
Grass: GRASS 6.4.0svn

p.p.s

Needed osgeo4w installation tricks to start the grass64 and to run gdal and ogr tools from an msys window:

remove (skip) libjpeg-ipp package
remove zoneinfo package (last one)
open Msys shell
find /C/OSGeo4W/ -name 'Init.sh‘
change the value of GISBASE in /c/OSGeo4W/bin/grass64 to point to /c/OSGEO4W/apps/grass/grass-6.4.0svn
(mkdir c:/OSGEO4W/apps/grass/grass-6.4.0svn/fonts)
(g.mkfontcap -o extradirs=/C/winnt/fonts/)

for GDAL

if you see complains about missing DLLs, just rename/move corresponding libs located in
C:\OSGeo4W\bin\gdalplugins\ directory. Or install the required libs.

for OGR

if you see complains about missing DLLs, just rename/move corresponding libs located in
C:\OSGeo4W\bin\gdalplugins\ directory. Or install the required libs.

Anssi Pekkarinen wrote:

I have managed to install grass64 using latest osgeo4w installer and can now
(after a few modifications) run shell scripts in a Msys window. However, I
noticed something weird: the fontcap file was referring to a directory which
did not exist i.e. to /c/OSGEO4W/apps/grass/grass-6.4.0svn/fonts.

The $GISBASE/fonts directory should exist (wherever $GISBASE happens
to be), and should contain files named fonts.table, hersh.oc1 through
.oc4, and various .hmp files.

The files can be found in lib/fonts/fonts in the source tree:

http://trac.osgeo.org/grass/browser/grass/branches/develbranch_6/lib/fonts/fonts

[The .or1 through .or4 files aren't used by GRASS.]

If those files aren't included in the installer, or if the fontcap
file refers to the wrong directory, submit a bug report.

I created
the dir and ran g.mkfontcap with extradirs=c:/winnnt/fonts and it went
through all right. But still, if I'm not mistaken, it seems that I can use
only the default font. At least for labels.

Any idea how to fix this? can I just download the fronts from somewhere,
install them to the fonts dir, and run the g.mkfontcap again?

Note that d.font doesn't work with direct rendering, which is the only
rendering mechanism available in Windows. From the command line, you
can set the GRASS_FONT and GRASS_ENCODING environment variables to
achieve the same result.

"d.font -l" should work to list the fonts, but setting a font won't
work (without a separate driver process, the setting is forgotten as
soon as d.font terminates). Commands which accept an explicit font=
option (e.g. d.vect) are unaffected.

--
Glynn Clements <glynn@gclements.plus.com>