From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#5869: [Aquamacs-bugs] Re: incorrect fontification of non-ascii chars on Mac OS X 10.4 Date: Thu, 30 Jun 2005 12:34:43 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <20050630.013633.55126241.mituharu@math.s.chiba-u.ac.jp> <7A52A2B4-ADD0-44A0-B8C9-A1F8F4CCDE75@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1270746221 27123 80.91.229.12 (8 Apr 2010 17:03:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Apr 2010 17:03:41 +0000 (UTC) Cc: aquamacs-bugs@lists.sourceforge.net, whenney@gmail.com, 5869@debbugs.gnu.org To: David Reitter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 08 19:03:37 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nzv8h-000514-40 for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Apr 2010 19:03:35 +0200 Original-Received: from localhost ([127.0.0.1]:42079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nzv8g-00046N-Mj for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Apr 2010 13:03:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nzv7M-0002ql-Sy for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 13:02:13 -0400 Original-Received: from [140.186.70.92] (port=59345 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nzv7H-0001m3-LA for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 13:02:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nzv4V-0003w8-GJ for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 12:59:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38584) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nzv4U-0003vw-Um for bug-gnu-emacs@gnu.org; Thu, 08 Apr 2010 12:59:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nzujw-0005L0-Bw; Thu, 08 Apr 2010 12:38:00 -0400 X-Loop: help-debbugs@gnu.org Resent-From: YAMAMOTO Mitsuharu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Apr 2010 16:38:00 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 5869 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-Cc: emacs-pretest-bug@gnu.org, whenney@gmail.com, aquamacs-bugs@lists.sourceforge.net Original-Received: via spool by submit@debbugs.gnu.org id=B.127074463820007 (code B ref -1); Thu, 08 Apr 2010 16:38:00 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Apr 2010 16:37:18 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nzuiy-0005C7-Q7 for submit@debbugs.gnu.org; Thu, 08 Apr 2010 12:37:03 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nzuit-0005BQ-HT for submit@debbugs.gnu.org; Thu, 08 Apr 2010 12:36:56 -0400 Original-Received: from mail.gnu.org ([199.232.76.166]:57066 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nzuio-00047H-W9 for emacs-pretest-bug@gnu.org; Thu, 08 Apr 2010 12:36:51 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45613) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nzuio-00026X-2h for emacs-pretest-bug@gnu.org; Thu, 08 Apr 2010 12:36:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzubL-0007Ve-Am for emacs-pretest-bug@gnu.org; Thu, 08 Apr 2010 12:29:13 -0400 Original-Received: from braeburn.psy.cmu.edu ([128.2.248.151]:55347 helo=lists.aquamacs.org) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzubL-0007Va-5p for emacs-pretest-bug@gnu.org; Thu, 08 Apr 2010 12:29:07 -0400 Original-Received: by lists.aquamacs.org (Postfix, from userid 502) id 02DDE2806B87; Thu, 8 Apr 2010 16:29:07 +0000 (UTC) Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.30) id 1Dnpp8-0008EX-7K for aquamacs-bugs@lists.sourceforge.net; Wed, 29 Jun 2005 20:34:46 -0700 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.41) id 1Dnpp7-0002c8-KP for aquamacs-bugs@lists.sourceforge.net; Wed, 29 Jun 2005 20:34:46 -0700 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id E5A472CB6; Thu, 30 Jun 2005 12:34:43 +0900 (JST) In-Reply-To: <7A52A2B4-ADD0-44A0-B8C9-A1F8F4CCDE75@gmail.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: aquamacs-bugs@aquamacs.org X-Mailman-Version: 2.0.9-sf.net Precedence: bulk X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org Resent-Date: Thu, 08 Apr 2010 12:38:00 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36062 Archived-At: >>>>> On Wed, 29 Jun 2005 17:59:01 +0100, David Reitter said: >>> Well, create-fontset-from-mac-roman seems to create fontsets with >>> fonts only drawn from the 'roman' type. >> Could you give me a concrete example? > I didn't try it out (don't use cyrillic fonts etc.), but I looked at > the name of the function and at the code, which uses > (create-fontset-from-ascii-font font resolved-font fontset-name) > The documentation says that this function 'Create[s] a fontset from > an ASCII font font", which I take to be roman only. But let me know > if I'm mistaken there. I don't know much about the whole font > business... Please don't just guess. Fontsets defined with create-fontset-from-ascii-font can also display non-ascii fonts (if corresponding fonts are installed). Unspecified parts are complemented using the data in "fontset-default" and others. I've been using fontsets defined with create-fontset-from-mac-roman-font and I can display CJK characters as well as mac-roman, mac-centraleurroman, mac-cyrillic, mac-symbol, and mac-dingbats characters. >> As for the "tons of wrong glyphs" problem, I think that's due to a >> misuse of the function, rather than a bug. The function >> create-fontset-from-fontset-spec is suitable only for the case that >> all the characters in a single charset are displayed with a single >> font. But that's not the case for fonts in Mac encodings. > Uuh, oh - the documentation of create-fontset-from-fontset-spec > doesn't say so. Maybe it's a documentation bug then :) I think the format of the FONTSET-SPEC argument implicitly says that. FONTSET-SPEC is a string of the format: FONTSET-NAME,CHARSET-NAME0:FONT-NAME0,CHARSET-NAME1:FONT-NAME1,... Moreover, we usually don't have to care about that on X11. > So what should we use to define a fontset that contains roman and > non- roman fonts for a variety of charsets? That's quite relevant, > because at least a few standard fontsets need to support everything. (create-fontset-from-mac-roman-font "-*-FAMILY-medium-r-normal--SIZE-*-*-*-*-*-mac-roman" nil "NAME") would do the right thing for normal use. If one also want to use ETL fonts, one can refer to how "fontset-mac" is defined. > If you look at carbon-font.el by T. Hiromatsu, you'll see a lot of > (undocumented or documented-in-Japanese) code that deals with fonts, > using create-fontset-from-fontset-spec. I assume you have a better > idea about what's going on there... I've no idea about its intention. It also introduces tons of wrong glyphs... YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp