Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Kevin Yu <yujie052 <at> gmail.com>
Subject: NTemacs chooses the same font for all Glyphs
Newsgroups: gmane.emacs.devel
Date: Friday 30th May 2008 01:52:40 UTC (over 9 years ago)
Hi, Here's the settings about font
======
(set-language-environment "chinese-gb18030")
(set-default-font "Monaco-10")
(set-fontset-font (frame-parameter nil 'font)
            'han '("Microsoft Yahei" . "unicode-bmp"))
(set-fontset-font (frame-parameter nil 'font)
           'symbol '("Microsoft Yahei" . "unicode-bmp"))
(set-fontset-font (frame-parameter nil 'font)
            'cjk-misc '("Microsoft Yahei" . "unicode-bmp"))
(set-fontset-font (frame-parameter nil 'font)
           'bopomofo '("Microsoft Yahei" . "unicode-bmp"))
=======

But emacs tries to use Monaco for all Glyphs, all Chinese characters are
showed as blank space.

the output of describe-char:

English:
        character: e (101, #o145, #x65)
preferred charset: ascii (ASCII (ISO646 IRV))
       code point: 0x65
           syntax: w     which means: word
         category: a:ASCII graphic characters 32-126 (ISO646 IRV:1983[4/0])
l:Latin r:Japanese roman
      buffer code: #x65
        file code: #x65 (encoded by coding system undecided-dos)
          display: by this font (glyph code)
     -outline-Monaco-normal-normal-normal-mono-13-*-*-*-c-*-iso10646-1
(#x48)

Chinese:
        character: 实 (23454, #o55636, #x5b9e)
preferred charset: gb18030 (GB18030)
       code point: 0xCAB5
           syntax: w     which means: word
         category: C:Chinese (Han) characters of 2-byte character sets
c:Chinese |:While filling, we can break a line at this character.
      buffer code: #xE5 #xAE #x9E
        file code: #xCA #xB5 (encoded by coding system
chinese-gb18030-unix)
          display: by this font (glyph code)
     -outline-Monaco-normal-normal-normal-mono-13-*-*-*-c-*-iso10646-1
(#x03)
 
CD: 4ms