From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#3319: 23.0.93; Default font Date: Tue, 19 May 2009 14:42:14 +0900 Message-ID: References: <001801c9d71a$8bade240$a309a6c0$@J.Wright@qmul.ac.uk> <4A1227C1.2010503@gnu.org> Reply-To: Kenichi Handa , 3319@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1242712805 25126 80.91.229.12 (19 May 2009 06:00:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 May 2009 06:00:05 +0000 (UTC) Cc: F.J.Wright@qmul.ac.uk, 3319@emacsbugs.donarmstrong.com To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 19 07:59:56 2009 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.50) id 1M6IMj-00033A-Hj for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 May 2009 07:59:53 +0200 Original-Received: from localhost ([127.0.0.1]:57297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6IMi-0003WF-TS for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 May 2009 01:59:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6IFC-0001nH-5J for bug-gnu-emacs@gnu.org; Tue, 19 May 2009 01:52:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6IF6-0001mB-Vq for bug-gnu-emacs@gnu.org; Tue, 19 May 2009 01:52:05 -0400 Original-Received: from [199.232.76.173] (port=52040 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6IF6-0001ln-Dn for bug-gnu-emacs@gnu.org; Tue, 19 May 2009 01:52:00 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52764) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M6IF5-0007V9-Pg for bug-gnu-emacs@gnu.org; Tue, 19 May 2009 01:52:00 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4J5pv69012873; Mon, 18 May 2009 22:51:57 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n4J5o3GJ011664; Mon, 18 May 2009 22:50:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 19 May 2009 05:50:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3319 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3319-submit@emacsbugs.donarmstrong.com id=B3319.124271172610240 (code B ref 3319); Tue, 19 May 2009 05:50:03 +0000 Original-Received: (at 3319) by emacsbugs.donarmstrong.com; 19 May 2009 05:42:06 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.aist.go.jp (mx1.aist.go.jp [150.29.246.133]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4J5g1po010234 for <3319@emacsbugs.donarmstrong.com>; Mon, 18 May 2009 22:42:03 -0700 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n4J5fxlx006156; Tue, 19 May 2009 14:41:59 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n4J5fxBC003248; Tue, 19 May 2009 14:41:59 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id n4J5fw7v006023; Tue, 19 May 2009 14:41:58 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1M6I5e-00041e-Ae; Tue, 19 May 2009 14:42:14 +0900 In-reply-to: <4A1227C1.2010503@gnu.org> (message from Jason Rumney on Tue, 19 May 2009 11:30:09 +0800) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 19 May 2009 01:52:05 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:28017 Archived-At: In article <4A1227C1.2010503@gnu.org>, Jason Rumney writes: > Kenichi Handa wrote: > > I think what you intend by :family "outline-lucida sans > > typewriter" is actually :foundry "outline" :family "lucida > > sans typewriter", right. If so, I've just installed a fix. > > Please try again. > Please ensure your fix does not break cases like :family "MingLiU-ExtB", > where the hyphen really is part of the family name. We can't handle that kind of family name without breaking a backward compatibility. We discussed this matter a while ago, but didn't reach a conclusion. I'll put the last mail on that thread at the tail. Anyway, my change is just this. - (setq foundry (match-string 2 family))) - (setq family (match-string 1 family))) + (setq foundry (match-string 1 family))) + (setq family (match-string 2 family))) and it is a fix of a bug introduced by this change. 2008-10-14 Chong Yidong * faces.el (set-face-attribute): Set family and foundry before other attributes. --- Kenichi Handa handa@m17n.org ------------------------------------------------------------ From: Kenichi Handa To: Miles Bader In-reply-to: (message from Miles Bader on Fri, 27 Jun 2008 16:49:14 +0900) References: <87hcbi9vbg.fsf@catnip.gol.com> <4862198F.4060305@gnu.org> Content-Type: text/plain; charset=US-ASCII Message-Id: Date: Fri, 27 Jun 2008 17:12:32 +0900 Cc: schwab@suse.de, jasonr@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org Subject: Re: sans-serif name change In article , Miles Bader writes: > Kenichi Handa writes: > > And, fontconfig requires `-' in a family name to be escaped > > by `\': .. > > So, how about using the same rule for Emacs? > > > > (set-face-attribute 'variable-pitch nil :family "sans\\-serif") > But currently other places, such as `set-frame-font' seem to work > properly if passed "Sans-Serif" without escaping the "-". Perhaps some > part of emacs is already adding the backslash? No. In ftfont.c, these names: "mono", "monospace", "sans-serif", "sans serif", "sans", "serif" are specially recognized as generic family names. In addition, fontconfig accepts the literal "sans-serif" when used in the function FcPatternAddString (pat, FC_FAMILY, ...). Fontconfig requires escaping only on parsing a font name, and adds escaping on generating a font name. > I think _if_ there are fonts with "-" in their name, requiring the dash > to be escaped will annoy and confuse users, and lead to bug reports. > I don't know how many such fonts there are, of course. > [I'd say just get rid of the old-style foundry-family names; do we > really care?] As I wrote before, I tend to agree with breaking the backward compatibility here. --- Kenichi Handa handa@ni.aist.go.jp