[GRASS-dev] Re: gis.m: font selection in module panels

Michael Barton michael.barton at asu.edu
Mon May 21 14:41:17 EDT 2007



On 5/21/07 11:31 AM, "Glynn Clements" <glynn at gclements.plus.com> wrote:

> Michael Barton wrote:
>> Normally, either GRASS_FONT has been set or it hasn't. It probably won't be
>> set to "". How is the best way to determine if it has been set or not?
> Try to use it and catch any errors.
> If the following fails:
> if {[info exists env(GRASS_FONT)] && $env(GRASS_FONT) != ""} {
> then omitting the second half and using just:
> if {[info exists env(GRASS_FONT)]} {
> will presumably fail at the point that $env(GRASS_FONT) is used, for
> the same reasons.

Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and 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