[Top][All Lists]

[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" <address@hidden> wrote:

> On 3月3日, 下午6時04分, David Hansen <address@hidden> wrote:
>> On 2 Mar 2007 23:27:11 -0800 "weihan" <address@hidden> 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,\

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.


reply via email to

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