[GRASS-dev] font path question for Linux and Windows
Michael Barton
michael.barton at asu.edu
Mon Apr 30 10:10:26 EDT 2007
Thanks. I'll change accordingly.
Michael
On 4/30/07 1:02 AM, "Glynn Clements" <glynn at gclements.plus.com> wrote:
>
> 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)
> C:\WINDOWS
>
> % puts [file join $env(WINDIR) Fonts]
> C:\WINDOWS/Fonts
>
> % puts [file join [exec cygpath -u $env(WINDIR)] Fonts]
> /cygdrive/c/WINDOWS/Fonts
__________________________________________
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