unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* fontset specification not working
@ 2008-03-18  9:41 Yu-ning Feng
  0 siblings, 0 replies; only message in thread
From: Yu-ning Feng @ 2008-03-18  9:41 UTC (permalink / raw)
  To: bug-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 2212 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 3078 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-18  9:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-18  9:41 fontset specification not working Yu-ning Feng

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).