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

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

fontset specification not working


From: Yu-ning Feng
Subject: fontset specification not working
Date: Tue, 18 Mar 2008 17:41:21 +0800

Fontset specification does not work as expected.

versions
========
emacs 23.0.60.2 (cvs'ed on Mar 18, GMT+8)
debian 4.0r3


description
========

I would like to add fonts to view Chinese, so I modified ~/.Xdefaults,
--------
Emacs.Font:fontset-song
Emacs.Fontset-0:-*-fixed-medium-r-*-*-14-*-*-*-*-*-fontset-song,\
        chinese-gb2312:-*-song ti-medium-r-*-*-16-*-gb2312*-*

--------
(

$xrdb ./Xdefaults
Then restarted emacs. I inputted some Chinese characters. The font did not look like that had specified. I described the character to see its font,

M-x describe-char <return>:
--------
        character: 你 (20320, #o47540, #x4f60)
preferred charset: chinese-gb2312 (GB2312 Chinese simplified: ISO-IR-58)
       code point: 0x4463
           syntax: w     which means: word
         category: C:Chinese (Han) characters of 2-byte character sets
           c:Chinese j:Japanese
           |:While filling, we can break a line at this character.
      buffer code: #xE4 #xBD #xA0
        file code: #xC4 #xE3 (encoded by coding system chinese-iso-8bit)
          display: by this font (glyph code)
     -arphic-ar pl sungtil gb-medium-r-normal--14-101-100-100-m-140-gb2312.1980-0 (#x4463)

--------

and I also checked the current fontset,

M-x describe-fontset <return>:
--------
Fontset: -misc-fixed-medium-r-normal--14-*-*-*-*-*-fontset-startup
CHAR RANGE (CODE RANGE)
    FONT NAME (REQUESTED and [OPENED])
C-@ .. DEL
    -*-fixed-*-*-*-*-*-*-*-*-*-*-iso8859-1
    -*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1
€ .. Ÿ (#x80 .. #x9F)
    -*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1
)" .. ͯ (#xA0 .. #x36F)
    -*-fixed-*-*-*-*-*-*-*-*-*-*-iso8859-1
    -*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1
Ͱ .. ᷿ (#x370 .. #x1DFF)
    -*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1
Ḁ .. ỿ (#x1E00 .. #x1EFF)
    -*-fixed-*-*-*-*-*-*-*-*-*-*-iso8859-1
    -*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1
ἀ ..  (#x1F00 .. #x3FFFFF)
    -*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1
default
    -*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1

  ---<fallback to the default fontset>---
--------

I did have the font "song ti" in the system(it existed after installation), and emacs could see it(auto-complete) when I tried to set-frame-font.

reply via email to

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