emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with unicode chars in GTK menus


From: Jan D.
Subject: Re: Problems with unicode chars in GTK menus
Date: Mon, 06 Jun 2005 14:16:35 +0200
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)

Ralf Angeli wrote:

After executing the following code

(easy-menu-define test-menu (current-local-map) "doc"
 `("xxx"
   (,(concat (string (decode-char 'ucs 915)) " \\Gamma"))
   ("G \\Gamma")))

in an Emacs compiled with support for GTK menus, there will be a new
"xxx" menu with two entries.  I expected the first menu entry to show
an upper case gamma, a space and the string "\Gamma".  But the space
and the backslash don't come out right.  The characters look similar
to a "normal" space and backslash, but appear too wide.  You should
see this by comparing the first menu entry with the second.  The
latter shows a "normal" space and backslash.

This is a GTK thing, I can reproduce it with a tiny GTK program. If the default font does not have the character (gamma) GTK tries another font and that may look different than the default one. I am not sure why the \ looks different though. I've filed a GTK bug on that:

http://bugzilla.gnome.org/show_bug.cgi?id=306645

   Jan D.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]