all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>
To: emacs-devel@gnu.org
Subject: set-fontset-font and preferred charset?
Date: Fri, 03 Jul 2009 14:15:22 +0900 (JST)	[thread overview]
Message-ID: <20090703.141522.801668491022750733.kasahara@nc.kyushu-u.ac.jp> (raw)

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
kasahara@nc.kyushu-u.ac.jp




             reply	other threads:[~2009-07-03  5:15 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-03  5:15 Yoshiaki Kasahara [this message]
2009-07-03  5:53 ` set-fontset-font and preferred charset? Kenichi Handa
2009-07-03  6:24   ` Werner LEMBERG
2009-07-03  7:21     ` Kenichi Handa
2009-07-03  8:09       ` YAMAMOTO Mitsuharu
2009-07-06 12:17         ` Kenichi Handa
2009-07-03  9:05       ` Yoshiaki Kasahara
2009-07-08  7:44         ` Kenichi Handa
2009-07-08  8:09           ` YAMAMOTO Mitsuharu
2009-07-08  8:48             ` YAMAMOTO Mitsuharu
2009-07-08 11:29               ` Kenichi Handa
2009-07-09  0:00                 ` YAMAMOTO Mitsuharu
2009-07-09  1:06                   ` Kenichi Handa
2009-07-08  8:13           ` Yoshiaki Kasahara
2009-07-09  1:21             ` Kenichi Handa
2009-07-09  2:40               ` Yoshiaki Kasahara
2009-07-09  3:55                 ` Kenichi Handa
2009-07-09  4:32                   ` Yoshiaki Kasahara
2009-07-09  4:50                     ` Kenichi Handa
2009-07-09  5:06                       ` Yoshiaki Kasahara
2009-07-09 12:00                         ` Kenichi Handa
2009-07-10  2:52                           ` Yoshiaki Kasahara
2009-07-10  4:05                             ` Kenichi Handa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090703.141522.801668491022750733.kasahara@nc.kyushu-u.ac.jp \
    --to=kasahara@nc.kyushu-u.ac.jp \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.