From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: fonts in carbon emacs Date: Wed, 13 Jul 2005 18:22:22 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1121248680 21253 80.91.229.2 (13 Jul 2005 09:58:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2005 09:58:00 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 13 11:57:59 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dsdzv-00055d-Vf for ged-emacs-devel@m.gmane.org; Wed, 13 Jul 2005 11:57:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dse1b-0004RJ-70 for ged-emacs-devel@m.gmane.org; Wed, 13 Jul 2005 05:59:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dsdft-0001Ok-9w for emacs-devel@gnu.org; Wed, 13 Jul 2005 05:37:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dsdfm-0001O3-Ko for emacs-devel@gnu.org; Wed, 13 Jul 2005 05:37:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DsdTP-0008Gi-H9 for emacs-devel@gnu.org; Wed, 13 Jul 2005 05:24:12 -0400 Original-Received: from [133.82.132.2] (helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DsdZS-00018t-K1 for emacs-devel@gnu.org; Wed, 13 Jul 2005 05:30:27 -0400 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 074802CAB for ; Wed, 13 Jul 2005 18:22:23 +0900 (JST) Original-To: emacs-devel@gnu.org In-Reply-To: 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: 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:40861 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40861 >>>>> On Sun, 03 Jul 2005 21:15:42 +0900, YAMAMOTO Mitsuharu said: > A workaround is to customize "fontset-default" as follows: > (fontset-add-mac-fonts "fontset-default" "monaco") > But it has some drawbacks that 1) It does harm to ETL font users, On second thought, this is not related to users who don't use these fonts. So we can do like (unless (x-list-fonts "*-iso8859-1") (fontset-add-mac-fonts ...)). > and 2) Font family for Central-European/Cyrillic fonts are not > synchronized with that for the ASCII (or mac-roman) font. This issue would be eased by making the font family matching slightly more flexible as follows (the change is for Mac only): Index: src/xfaces.c =================================================================== RCS file: /cvsroot/emacs/emacs/src/xfaces.c,v retrieving revision 1.330 diff -c -r1.330 xfaces.c *** src/xfaces.c 11 Jul 2005 14:28:21 -0000 1.330 --- src/xfaces.c 13 Jul 2005 08:36:08 -0000 *************** *** 6745,6758 **** nfonts = try_alternative_families (f, try_family, registry, fonts); #ifdef MAC_OS ! /* When realizing the default face and a font spec does not matched ! exactly, Emacs looks for ones with the same registry as the ! default font. On the Mac, this is mac-roman, which does not work ! if the family is -etl-fixed, e.g. The following widens the ! choices and fixes that problem. */ ! if (nfonts == 0 && STRINGP (try_family) && STRINGP (registry) ! && xstricmp (SDATA (registry), "mac-roman") == 0) ! nfonts = try_alternative_families (f, try_family, Qnil, fonts); #endif if (EQ (try_family, family)) --- 6745,6765 ---- nfonts = try_alternative_families (f, try_family, registry, fonts); #ifdef MAC_OS ! if (nfonts == 0 && STRINGP (try_family) && STRINGP (registry)) ! if (xstricmp (SDATA (registry), "mac-roman") == 0) ! /* When realizing the default face and a font spec does not ! matched exactly, Emacs looks for ones with the same registry ! as the default font. On the Mac, this is mac-roman, which ! does not work if the family is -etl-fixed, e.g. The ! following widens the choices and fixes that problem. */ ! nfonts = try_alternative_families (f, try_family, Qnil, fonts); ! else if (SBYTES (try_family) > 0 ! && SREF (try_family, SBYTES (try_family) - 1) != '*') ! /* Some Central European/Cyrillic font family names have the ! Roman counterpart name as their prefix. */ ! nfonts = try_alternative_families (f, concat2 (try_family, ! build_string ("*")), ! registry, fonts); #endif if (EQ (try_family, family)) I've made these changes to the CVS, and now change of the height by customize-face works for the "default" face. They are still workarounds and do not solve the problem mentioned in (*1), which is not specific to Mac, but I think the situation has become better than before. (*1) http://lists.gnu.org/archive/html/emacs-devel/2005-07/msg00336.html YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp