[GRASS5] tcl/tk chinese fonts issue

nilarcs nilarcs at gmail.com
Mon Mar 21 04:28:31 EST 2005


Yeah , it's great!  
Thank you very much! 
I think you should add this to the FAQ , someone else maybe need this too :) 
(BTW:Don't forget "xrdb -merge .Xdefaults" after you change the
.Xdefaults file.)

Zhang Jun
2005-3-21


On Fri, 18 Mar 2005 21:03:55 +0000, Glynn Clements
<glynn at gclements.plus.com> wrote:
> 
> Markus Neteler wrote:
> 
> > > > > Today I have tested the po file,  it worked fine. But the font in the
> > > > > GUI looks ugly , I want to change the font,  but I don't know how to
> > > > > do. Can you give me some suggestion?
> > > >
> > > About the font, I think one picture is more clear than thousands words :)
> >
> > [example attached]
> >
> > Actually I don't know how to change the font for the tcl/tk
> > windows.
> 
> You can change it through X resources.
> 
> However Tcl's handling of X resources is rather broken; in particular,
> program-specific settings don't work if the program name contains any
> dots (as is the case for d.m.tcl).
> 
> You can override the name using the -name switch e.g.:
> 
>    exec "$GRASS_WISH" "$GISBASE/etc/dm/d.m.tcl" -name d_m_tcl
> 
> [I suggest making the above change to the d.m script, in both places.]
> You can then set a font resource in ~/.Xdefaults with e.g.:
> 
>         d_m_tcl*font:   -adobe-helvetica-bold-r-*-*-16-*-*-*-*-*-iso8859-1
> 
> Also, it chooses the last matching key (not the most specific match),
> so you have to place the above setting after any generic font
> setting.
> 
> --
> Glynn Clements <glynn at gclements.plus.com>
>




More information about the grass-dev mailing list