From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yoshiaki Kasahara Newsgroups: gmane.emacs.devel Subject: set-fontset-font and preferred charset? Date: Fri, 03 Jul 2009 14:15:22 +0900 (JST) Message-ID: <20090703.141522.801668491022750733.kasahara@nc.kyushu-u.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1246598160 30419 80.91.229.12 (3 Jul 2009 05:16:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2009 05:16:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 03 07:15:53 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MMb7p-0001zE-Ia for ged-emacs-devel@m.gmane.org; Fri, 03 Jul 2009 07:15:53 +0200 Original-Received: from localhost ([127.0.0.1]:34873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMb7o-0004EO-Ak for ged-emacs-devel@m.gmane.org; Fri, 03 Jul 2009 01:15:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MMb7e-0004Ca-95 for emacs-devel@gnu.org; Fri, 03 Jul 2009 01:15:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MMb7Y-000465-AL for emacs-devel@gnu.org; Fri, 03 Jul 2009 01:15:40 -0400 Original-Received: from [199.232.76.173] (port=57119 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MMb7Y-00045m-1t for emacs-devel@gnu.org; Fri, 03 Jul 2009 01:15:36 -0400 Original-Received: from elvenbow.nc.kyushu-u.ac.jp ([133.5.6.4]:57511 helo=elvenbow.cc.kyushu-u.ac.jp) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MMb7X-00036I-1T for emacs-devel@gnu.org; Fri, 03 Jul 2009 01:15:35 -0400 Original-Received: from localhost (kasahara@localhost [IPv6:::1]) by elvenbow.cc.kyushu-u.ac.jp (8.14.3/8.14.3) with ESMTP id n635FMGj006317 for ; Fri, 3 Jul 2009 14:15:23 +0900 (JST) (envelope-from kasahara@nc.kyushu-u.ac.jp) X-Fingerprint: CDA2 B6B6 6796 0DD3 9D80 2602 E909 4623 A15E A074 X-URL: http://www.nc.kyushu-u.ac.jp/~kasahara/ X-Mailer: Mew version 6.2.50 on Emacs 23.1.50 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111934 Archived-At: 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