[GRASS5] tcl/tk chinese fonts issue

Glynn Clements glynn at gclements.plus.com
Mon Mar 21 18:24:35 EST 2005


nilarcs wrote:

> (BTW:Don't forget "xrdb -merge .Xdefaults" after you change the
> .Xdefaults file.)

Technically, "xrdb -merge ~/.Xdefaults" is wrong. Unfortunately,
certain broken configurations (most notably KDE) require it.

To check whether you need to do it, run "xrdb -query". If it produces
any output, they you need to use "xrdb -merge ..." to update it; if it
produces no output, you don't.

Xt-based applications obtain resources from either:

a) the RESOURCE_MANAGER and SCREEN_RESOURCES properties on the root
window(s), or:

b) the ~/.Xdefaults file, if the aforementioned properties don't
exist.

The xrdb program sets and queries the resources described in a). If
you never use xrdb, applications read ~/.Xdefaults directly.

If you are running X applications on multiple hosts, it matters which
approach you use. If you use a), all applications will use the
resources from the root window properties; if you use b), each
application will use the local ~/.Xdefaults file.

For full details on how X resources are configured, see question 20 in
the comp.windows.x.intrinsics FAQ:

	http://www.faqs.org/faqs/Xt-FAQ/section-21.html

However, Tk ignores most of what is described there. It provides a
minimal emulation which will typically pick up your global font,
background and foreground settings but ignore the rest.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list