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

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

Re: Chinese font in an English environment


From: Leo
Subject: Re: Chinese font in an English environment
Date: Mon, 22 Jan 2007 11:22:47 +0000
User-agent: No Gnus v0.6, Emacs/22.0.92.1 (2007-01-22), Fedora 6 gnu/linux

On 2007-01-22, Peter Dyballa said:

> Am 20.01.2007 um 11:45 schrieb Leo:
>
>> In an "English" environment, some Chinese characters are displayed
>> using Japanese fonts since there are character overlapping for both
>> languages. For example, 输入法 are displayed by two fonts as listed
>> below. This makes the style of Chinese text looks inconsistent. I am
>> wondering is there such setting that will make Emacs choose one font
>> over another.
>
> Have you thought of creating a fontset? Including statements like
>
>       (set-fontset-font "fontset-11pt_adobe_courier" (cons
> (decode-char 'ucs #x0d00) (decode-char 'ucs #x0d7f)) '("code2000" .
> "iso10646-1"))        ; Malayalam
>       (set-fontset-font "fontset-11pt_adobe_courier" (cons
> (decode-char 'ucs #x0d80) (decode-char 'ucs #x0dff)) '("akshar
> unicode" .  "iso10646-1"))    ; Sinhala
>
> you can advise GNU Emacs to use a particular font for a particular
> range of Unicode characters.

This seems to the right solution. However, I have no clue what unicode
range for Chinese characters. BTW, how can I turn those
(set-fontset-font ...) into .Xresources settings?

-- 
Leo <sdl.web AT gmail.com>                         (GPG Key: 9283AA3F)





reply via email to

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