[GRASS-user] Missing fonts in windows installation

Glynn Clements glynn at gclements.plus.com
Sun Jan 31 22:51:13 EST 2010


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 at gclements.plus.com>


More information about the grass-user mailing list