[GRASS-dev] thinking about font variables

Michael Barton michael.barton at asu.edu
Thu Apr 26 09:09:43 EDT 2007

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
>> variable.
> 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

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

More information about the grass-dev mailing list