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

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

Re: Can't display Japanese text in menu bar


From: Katsumi Yamaoka
Subject: Re: Can't display Japanese text in menu bar
Date: Thu, 14 Dec 2006 17:01:02 +0900
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux)

First of all, this issue is not necessarily serious at least for
me and Nomiya-san since we have a workaround to solve it.  So,
you can let us wait.  I have doubts that it doesn't work for us
even if it works for Handa-san, though.

>>>>> In <address@hidden> Katsumi Yamaoka wrote:
>>>>>> In <address@hidden> Handa-san wrote:

>>> (let ((japanese (decode-coding-string "\e$B%F%9%H\e(B" 'iso-2022-jp)))
>>>   (easy-menu-define testing-menu global-map "Testing."
>>>     `("Testing"
>>>       [,japanese (lambda nil (interactive) (message ,japanese)) t]))
>>>   (easy-menu-add testing-menu global-map))

>> It works for me (my Emacs also uses LUCID) both in
>> ja_JP.EUC-JP and en_US.UTF-8.  In which locale did you test
>> it?

> The locale command returns the following in the PCs, running
> Fedora Core 6 Linux, both in the office and home.

> LANG=ja_JP.eucjp
> LC_CTYPE=ja_JP.eucjp

[...]

> Those are set globally in the systems and I don't modify any of
> them in Emacs.  I verified it doesn't work in both the PCs.

The menu bar doesn't display Japanese text but displays the one
looking like raw encoded data as shown in the attached image1
below.  I also tried it with latest Emacs CVS in the Solaris 2.6
machine.  But there was no difference.

Although it might be irrelevant to this issue, I found a funny
thing in relation to the `menu' face.

>>> I found the way to make it work.  That is to re-set the font for
>>> the `menu' face as follows:

>>> (set-face-font 'menu (face-font 'menu))

It works, however it changes the font used in the menu bar.  In
other words, the font that the form (face-font 'menu) returns is
not the font being actually used.  Please compare image1 and 2.
Furthermore, I tried an X resource for setting the font for the
menu face as follows:

*menubar*Font: -*-helvetica-bold-o-normal--14-*-iso8859-1

It works and Emacs uses the oblique font in the menu bar.
However, (face-font 'menu) seems to always return

"-Adobe-Courier-Medium-R-Normal--12-120-75-75-M-70-ISO8859-1"

if the form (set-face-font 'menu "foo") has never been performed.

PNG image

PNG image

Regards,

reply via email to

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