From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Fixed-pitch and variable-pitch faces Date: Mon, 09 Jun 2008 11:59:53 +0900 Message-ID: References: <871w39mcx5.fsf@stupidchicken.com> <877icz5rai.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1212980433 13568 80.91.229.12 (9 Jun 2008 03:00:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Jun 2008 03:00:33 +0000 (UTC) Cc: monnier@iro.umontreal.ca, cloos@jhcloos.com, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 09 05:01:15 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K5XdC-0001Jy-IC for ged-emacs-devel@m.gmane.org; Mon, 09 Jun 2008 05:01:14 +0200 Original-Received: from localhost ([127.0.0.1]:58312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5XcP-00043b-J8 for ged-emacs-devel@m.gmane.org; Sun, 08 Jun 2008 23:00:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K5Xc3-0003p3-BG for emacs-devel@gnu.org; Sun, 08 Jun 2008 23:00:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K5Xc1-0003nK-DW for emacs-devel@gnu.org; Sun, 08 Jun 2008 23:00:02 -0400 Original-Received: from [199.232.76.173] (port=37511 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5Xc1-0003nB-4C for emacs-devel@gnu.org; Sun, 08 Jun 2008 23:00:01 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:43711) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K5Xc1-0006K3-Cm for emacs-devel@gnu.org; Sun, 08 Jun 2008 23:00:01 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id m5930RPL013338; Mon, 9 Jun 2008 12:00:27 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id m592xuOb028010; Mon, 9 Jun 2008 11:59:56 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id m592xr8A003463; Mon, 9 Jun 2008 11:59:53 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1K5Xbt-0005vU-Gy; Mon, 09 Jun 2008 11:59:53 +0900 In-reply-to: <877icz5rai.fsf@stupidchicken.com> (message from Chong Yidong on Sun, 08 Jun 2008 21:29:57 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 9 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:98756 Archived-At: In article <877icz5rai.fsf@stupidchicken.com>, Chong Yidong writes: > Kenichi Handa writes: > > In article , James Cloos writes: > > [...] >>> The complication, of course, is when multiple font backends are in use. >>> I run with just xft. If you have x,xft then it is probably right for >>> the Helvetica bitmap to win out. If xft,x then that might be debatable: >>> whether 'tis better to give primary weight to the name or to the technology? > > > > FYI, the current font-selection code doesn't pay attention > > to the order of font backends. > I guess we can worry about this problem after making the fontconfig > backend recognize the necessary mappings, which it currently does not. > (For example, (list-fonts (font-spec :family "courier")) returns only > x-backend fonts.) Do you know how to do that? As far as I know, fontconfig's API FcFontMatch is very difficult to use here. It always returns a font that fontconfig thinks best matching with the given pattern. If the family name of the returned font is different from the requested one, there's no way to know whether the requested family name is remapped (or selected as an alias) by some config file or not. So, Emacs currently uses FcFontList only (except for such generic families; monospace, sans-serit, serif). In your case, what is returned by this? % fc-list courier --- Kenichi Handa handa@ni.aist.go.jp