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: Wed, 20 May 2009 13:14:13 +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 1242793951 29586 80.91.229.12 (20 May 2009 04:32:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 May 2009 04:32:31 +0000 (UTC) Cc: F.J.Wright@qmul.ac.uk, 3319@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 20 06:32:22 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 1M6dTY-0005ds-6k for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 May 2009 06:32:20 +0200 Original-Received: from localhost ([127.0.0.1]:38825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6dTX-0008Dy-N2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 May 2009 00:32:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M6dTP-0008Cm-Rv for bug-gnu-emacs@gnu.org; Wed, 20 May 2009 00:32:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M6dTM-0008AX-18 for bug-gnu-emacs@gnu.org; Wed, 20 May 2009 00:32:11 -0400 Original-Received: from [199.232.76.173] (port=55200 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M6dTL-0008AR-GU for bug-gnu-emacs@gnu.org; Wed, 20 May 2009 00:32:07 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56553) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M6dTK-0000Pw-Vp for bug-gnu-emacs@gnu.org; Wed, 20 May 2009 00:32:07 -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 n4K4Vv6x032280; Tue, 19 May 2009 21:31:57 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n4K4K387028226; Tue, 19 May 2009 21:20: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: Wed, 20 May 2009 04:20: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.124279284326675 (code B ref 3319); Wed, 20 May 2009 04:20:03 +0000 Original-Received: (at 3319) by emacsbugs.donarmstrong.com; 20 May 2009 04:14:03 +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 n4K4DwEc026667 for <3319@emacsbugs.donarmstrong.com>; Tue, 19 May 2009 21:14:00 -0700 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n4K4DvHZ015799; Wed, 20 May 2009 13:13:57 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n4K4DvgO005606; Wed, 20 May 2009 13:13:57 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id n4K4Duwc009486; Wed, 20 May 2009 13:13:56 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1M6dC1-00079e-K6; Wed, 20 May 2009 13:14:13 +0900 In-reply-to: (message from Stefan Monnier on Tue, 19 May 2009 22:16:52 -0400) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 20 May 2009 00:32:11 -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:28042 Archived-At: In article , Stefan Monnier writes: >>> Breaking backward compatibility might be OK, but I still wonder: how >>> come we ended up with "Sanvito Pro Subhead" from a spec of >>> a non-existing "outline-lucida sans typewriter"? > > When there's no font of the specified family, Emacs tries to > > find a font without specifing family. In that case, which > > family is selected is just arbitrary. > Shouldn't we fallback on the default font families > (Sans/Courier/...) instead? It sounds good, but the proper fallback font family is different on platforms. For instance, xfns.c has this code: char *names[] = { #ifdef HAVE_XFT /* This will find the normal Xft font. */ "monospace-12", #endif "-adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1", "-misc-fixed-medium-r-normal-*-*-140-*-*-c-*-iso8859-1", "-*-*-medium-r-normal-*-*-140-*-*-c-*-iso8859-1", /* This was formerly the first thing tried, but it finds too many fonts and takes too long. */ "-*-*-medium-r-*-*-*-*-*-*-c-*-iso8859-1", /* If those didn't work, look for something which will at least work. */ "-*-fixed-*-*-*-*-*-140-*-*-c-*-iso8859-1", "fixed", NULL }; and w32fns.c has this: static char *names[] = { "Courier New-10", "-*-Courier-normal-r-*-*-13-*-*-*-c-*-iso8859-1", "-*-Fixedsys-normal-r-*-*-12-*-*-*-c-*-iso8859-1", "Fixedsys", NULL }; --- Kenichi Handa handa@m17n.org