[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fonts for Chinese charset
From: |
Eric |
Subject: |
Re: fonts for Chinese charset |
Date: |
Sun, 14 Jun 2009 21:52:21 -0700 (PDT) |
User-agent: |
G2/1.0 |
On Jun 14, 3:08 pm, Eric <gir...@gmail.com> wrote:
> Nevermind! I compiled emacs 23 and all works well. All characters
> report their character set as unicode (or unicode bmp for Chinese
> chars) and while it's using a hideous Chinese font I'll bet I can
> figure that one out on my own.
And I did, eventually:
(set-fontset-font
(frame-parameter nil 'font) 'chinese-gb2312 '("STKaiti" . "unicode-
bmp"))
>
> E
>
> On Jun 14, 12:10 pm, Eric Abrahamsen <gir...@gmail.com> wrote:
>
>
>
> > So rather than attempting to hijack the other utf char display thread,
> > I'll ask my question in a new one...
>
> > My issue, it turns out, is that without defining any font stuff
> > whatsoever, emacs interprets most of my Chinese characters as Japanese
> > (presumably the Chinese character which exist as kanji in Japanese).
> > My language environment and preferred coding system is utf-8, but
> > running C-u C-x = on a Chinese character shows it as charset japanese-
> > jisx0208, encoded by mule-utf-8. I recently set the default font to
> > Inconsolata, which resulted in more (about half) of the characters
> > being interpreted as a Chinese charset (chinese-gb2312), and also a
> > very different font being used for the "Japanese" and "Chinese"
> > characters. I thought this was where my problems started, in fact they
> > were existing problems highlighted by the use of obviously different
> > fonts.
>
> > Running C-h C RET and looking at the coding system priority list, it
> > starts off with mule-utf-8, and then there are a few japanese coding
> > systems further down (but no chinese). I thought if I used prefer-
> > coding-system to set the first priority to mule-utf-8 and the second
> > to gb2312 that might help, but it seems to have made no difference.
> > Presumably this is because charsets and coding systems are not the
> > same thing.
>
> > Is there anything I can do to help emacs recognize all Chinese
> > characters as Chinese? My end goal is just to get emacs to use the
> > same (Chinese) font for all Chinese characters. I'm using Carbon emacs
> > (based on 22.3.1) on a Mac...
>
> > Thanks!
> > Eric