[GRASS-dev] thinking about font variables
epatton at nrcan.gc.ca
Thu Apr 26 13:03:22 EDT 2007
I've had good success with this method for some time now. I use arial for all of my text layers. From my .bashrc:
From: grass-dev-bounces at grass.itc.it on behalf of Michael Barton
Sent: Thu 4/26/2007 10:09 AM
To: Glynn Clements
Cc: Hamish; grass-dev at grass.itc.it
Subject: Re: [GRASS-dev] thinking about font variables
On 4/26/07 1:27 AM, "Glynn Clements" <glynn at gclements.plus.com> wrote:
>> However, with the d.font from the command line or setting GRASS_FONT from
>> within the GUI, the setting does not persist beyond the current GRASS
>> session. That is, unless you want the default (ugly) stroke font, you must
>> set the font at least for each session and (depending on what you do) for
>> each command.
> You can set GRASS_FONT (etc) in e.g. ~/.grass.bashrc. mon.select uses
> those variables when selecting a monitor, and direct rendering also
> uses them.
I didn't know this. If a default can be set in .grass.bashrc, then it
doesn't need to be set elsewhere. I'll try this out.
>> The other suggestion is for a GRASS_FONTPATH environmental variable that
>> would let a user substitute $GRASS_FONTPATH/Vera.ttf for typing (or browsing
>> for) /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf. This is only a
>> convenience, but a helpful one, along the lines of the GRASS_PROJSHARE
> Again, this would probably want to be a fallback, with the freetypecap
> file being used first. Also, it would really need to be a path rather
> than a single directory.
A full path is what I meant.
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
grass-dev mailing list
grass-dev at grass.itc.it
More information about the grass-dev