emacs-devel
[Top][All Lists]
Advanced

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

set-fontset-font and preferred charset?


From: Yoshiaki Kasahara
Subject: set-fontset-font and preferred charset?
Date: Fri, 03 Jul 2009 14:15:22 +0900 (JST)

Hello,

Is there any way to specify different fonts for the same character
with different preferred charsets?

For example, I want to display cyrillic/greek characters using
jisx0208.1983 fonts (wide characters) in Japanese charset texts, and
iso8859-* fonts (narrow characters) in other context (such as email
from other countries).

In other word, how can I specify different fonts for the following two
characters?

-----------

        character: д (1076, #o2064, #x434)
preferred charset: cyrillic-iso8859-5
                   (Right-Hand Part of ISO/IEC 8859/5 (Latin/Cyrillic): 
ISO-IR-144)
       code point: 0x54
           syntax: w    which means: word
         category:
                   .:Base, Y:2-byte Cyrillic, c:Chinese, h:Korean, j:Japanese, 
y:Cyrillic
      buffer code: #xD0 #xB4
        file code: ESC #x2C #x4C #x54 (encoded by coding system iso-2022-7bit)
          display: by this font (glyph code)
    x:-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-5 (#xD4)

Character code properties: customize what to show
  name: CYRILLIC SMALL LETTER DE
  general-category: Ll (Letter, Lowercase)
  canonical-combining-class: 0 (Spacing, split, enclosing, reordrant, and 
Tibetan subjoined)
  bidi-class: L (Left-to-Right)
  mirrored: N
  uppercase: 1044 (Д)
  titlecase: 1044 (Д)

-----------

        character: д (1076, #o2064, #x434)
preferred charset: japanese-jisx0208
                   (JISX0208.1983/1990 Japanese Kanji: ISO-IR-87)
       code point: 0x2755
           syntax: w    which means: word
         category:
                   .:Base, Y:2-byte Cyrillic, c:Chinese, h:Korean, j:Japanese, 
y:Cyrillic
      buffer code: #xD0 #xB4
        file code: ESC #x24 #x42 #x27 #x55
                   (encoded by coding system iso-2022-7bit)
          display: by this font (glyph code)
    x:-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-5 (#xD4)

Character code properties: customize what to show
  name: CYRILLIC SMALL LETTER DE
  general-category: Ll (Letter, Lowercase)
  canonical-combining-class: 0 (Spacing, split, enclosing, reordrant, and 
Tibetan subjoined)
  bidi-class: L (Left-to-Right)
  mirrored: N
  uppercase: 1044 (Д)
  titlecase: 1044 (Д)

-----------
(it seems that the characters in this mail were unified into
iso-2022-jp by the mailer... I picked up the first one from HELLO
file.)

The following settings supercede each other and don't work well.

(set-fontset-font "fontset-startup"
                  'japanese-jisx0208
                  '("misc-fixed" . "jisx0208.1983"))

(set-fontset-font "fontset-startup"
                  'cyrillic-iso8859-5
                  '("misc-fixed" . "iso8859-5"))

Regards,
-- 
Yoshiaki Kasahara
Research Institute for Information Technology, Kyushu University
address@hidden




reply via email to

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