From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Fontset problem Date: Fri, 6 Sep 2002 22:01:28 +0900 (JST) Sender: emacs-devel-admin@gnu.org Message-ID: <200209061301.WAA16358@etlken.m17n.org> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1031317301 21037 127.0.0.1 (6 Sep 2002 13:01:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2002 13:01:41 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17nIk0-0005TB-00 for ; Fri, 06 Sep 2002 15:01:40 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17nJKB-00089c-00 for ; Fri, 06 Sep 2002 15:39:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17nIlb-00022J-00; Fri, 06 Sep 2002 09:03:19 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17nIk5-00021d-00 for emacs-devel@gnu.org; Fri, 06 Sep 2002 09:01:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17nIk2-00021R-00 for emacs-devel@gnu.org; Fri, 06 Sep 2002 09:01:44 -0400 Original-Received: from tsukuba.m17n.org ([192.47.44.130]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17nIk1-00021K-00 for emacs-devel@gnu.org; Fri, 06 Sep 2002 09:01:41 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6/3.7W-20010518204228) with ESMTP id g86D1TK07002; Fri, 6 Sep 2002 22:01:29 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.3/3.7W-20010823150639) with ESMTP id g86D1Sd22187; Fri, 6 Sep 2002 22:01:28 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id WAA16358; Fri, 6 Sep 2002 22:01:28 +0900 (JST) Original-To: schwab@suse.de In-Reply-To: (message from Andreas Schwab on Tue, 03 Sep 2002 15:44:49 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.1.30 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7622 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7622 In article , Andreas Schwab writes: > I'd like to define a fontset that uses courier as the main font, but > substitutes fixed for the three mule-unicode coding systems (because they > are much more complete). Thus I defined the following fontset: > Emacs.Fontset-0: -*-courier-medium-r-normal--*-140-*-*-*-*-fontset-startup,\ > mule-unicode-2500-33ff:-*-fixed-medium-r-normal--*-140-*-*-*-*-iso10646-1,\ > mule-unicode-e000-ffff:-*-fixed-medium-r-normal--*-140-*-*-*-*-iso10646-1,\ > mule-unicode-0100-24ff:-*-fixed-medium-r-normal--*-140-*-*-*-*-iso10646-1 > The problem is that characters in the mule-unicode coding systems are > always using medium-r-normal style, even if they are supposed to be, say, > bold. On the other hand, if I define the fontset in this way: > Emacs.Fontset-0: -*-courier-medium-r-normal--*-140-*-*-*-*-fontset-startup,\ > mule-unicode-2500-33ff:-*-fixed-*-*-*--*-140-*-*-*-*-iso10646-1,\ > mule-unicode-e000-ffff:-*-fixed-*-*-*--*-140-*-*-*-*-iso10646-1,\ > mule-unicode-0100-24ff:-*-fixed-*-*-*--*-140-*-*-*-*-iso10646-1 > Emacs uses the first font that matches > -*-fixed-*-*-*--*-140-*-*-*-*-iso10646-1, which may not be the > medium-r-normal style. What is the right way to define the fontset so > that Emacs uses the right style? If you specify an XLFD field other than FOUNDRY, FAMILY, CHARSET_REGISTRY, CHARSET_ENCODING in each font name, Emacs tries to use the specified font name as is (i.e. the same font X server will find from that name). In your case, you specify ADSTYLE as NULL and POINT_SIZE as 140. If you put `*' in those fields, Emacs's normal font selection mechanism should work also for those charsets. So, please try this: Emacs.Fontset-0: -*-courier-medium-r-normal--*-140-*-*-*-*-fontset-startup,\ mule-unicode-2500-33ff:-*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1,\ mule-unicode-e000-ffff:-*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1,\ mule-unicode-0100-24ff:-*-fixed-*-*-*-*-*-*-*-*-*-*-iso10646-1 --- Ken'ichi HANDA handa@etl.go.jp