[GRASS-dev] font path question for Linux and Windows

Glynn Clements glynn at gclements.plus.com
Mon Apr 30 04:02:55 EDT 2007

Michael Barton wrote:

> >>> BTW, with Cygwin, I would suggest starting with $WINDIR/Fonts,
> >>> converted to a Cygwin path, e.g. "cygpath -u $WINDIR/fonts". Windows
> >>> is likely to have more fonts than Cygwin.
> Can I specify this location for both MySys and Cygwin systems by using the
> TclTk syntax...
> set fontpath [file joint $WINDIR "Fonts"]
> and letting it work differently for each system? Or do I need to have
> set fontpath [exec cygpath -u $WINDIR/fonts]
> for Cygwin (or something different) ?

AFAICT, you'll need to convert it explicitly for Cygwin:

	% puts $env(WINDIR)

	% puts [file join $env(WINDIR) Fonts]

	% puts [file join [exec cygpath -u $env(WINDIR)] Fonts]

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list