help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: big5 only on emacs-nox for Fedora core 6


From: David Hansen
Subject: Re: big5 only on emacs-nox for Fedora core 6
Date: Mon, 05 Mar 2007 03:31:06 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

On 4 Mar 2007 17:32:06 -0800 "weihan" <weihan@math.ncu.edu.tw> wrote:

> On 3月3日, 下午6時04分, David Hansen <david.han...@gmx.net> wrote:
>> On 2 Mar 2007 23:27:11 -0800 "weihan" <wei...@math.ncu.edu.tw> wrote:
>>
>> > Recently, I just upgrade my system to Fedora core 6. I found that
>> > in the new OS, the Chinese big5 font can not be shown correctly on
>> > emacs.
>> > However, it can be shown on emacs-nox. Is there anything I can change
>> > to
>> > make the emacs work for X-window version ?
>>
>> You can try to set the font for this encoding via fontsets in your
>> ~/.Xresources.
>>
>> David
>
> Hi, I try to add the following line on .emacs
>
> (set-default-font
> "-arphic technology co.-ar pl mingti2l big5-medium-r-normal--0-0-0-0-
> c-0-iso10646-1")
>
> the font comes exactly from xlsfonts command, but the emacs keep say
> the font does not exist !
>
> Anything wrong.

I'm not sure if whats wrong with it but you probably don't want to
set the "default font".  Emacs chooses different fonts for different
encodings with some heuristics that usually work pretty well.  I
suspect in your case emacs tries to find a latin version of your font
and fails (I might be wrong though).

An IMHO good method to solve your problem is to first choose your
favorite fixed font for ASCII chars and add

Emacs*fontset-0: -*-neep alt-medium-*-*-*-13-*-*-*-*-*-fontset-name

Emacs*font: fontset-name

to your Xresources file (and xrdb -merge it and restart Emacs).  Now
if you see some non ASCII characters that look ugly or are shown as
boxes move the cursor over it and hit C-u x =.  Emacs will tell you
the category of the character.  Now you extend you fontset
definition (make sure the font is available in the encoding that
emacs has chosen).  I ended up with:

Emacs*fontset-0: -*-neep alt-medium-*-*-*-13-*-*-*-*-*-fontset-small,\
mule-unicode-2500-33ff: 
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1,\
mule-unicode-e000-ffff: 
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1,\
mule-unicode-0100-24ff: 
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1

xrdb -merge again and restart emacs.  Note that you can specify
fontsets via elisp too.  Might save some restarting but I don't know
how it works.

David





reply via email to

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