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: Problem with narrow vs condensed fonts Date: Tue, 26 Feb 2008 12:10:13 +0900 Message-ID: References: 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 1203995436 23859 80.91.229.12 (26 Feb 2008 03:10:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2008 03:10:36 +0000 (UTC) Cc: schwab@suse.de, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 26 04:11:01 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 1JTqDa-0005Gc-D3 for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2008 04:10:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTqD4-0001Yq-GV for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2008 22:10:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTqD1-0001Ye-Hr for emacs-devel@gnu.org; Mon, 25 Feb 2008 22:10:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTqD0-0001Y9-Na for emacs-devel@gnu.org; Mon, 25 Feb 2008 22:10:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTqD0-0001Y6-Jt for emacs-devel@gnu.org; Mon, 25 Feb 2008 22:10:22 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JTqCz-0000MM-Sk for emacs-devel@gnu.org; Mon, 25 Feb 2008 22:10:22 -0500 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id m1Q3AI4T010303; Tue, 26 Feb 2008 12:10:18 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id m1Q3AIq0004270; Tue, 26 Feb 2008 12:10:18 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id m1Q3AD7S012332; Tue, 26 Feb 2008 12:10:13 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1JTqCr-0002K5-6f; Tue, 26 Feb 2008 12:10:13 +0900 In-reply-to: (message from Stefan Monnier on Mon, 25 Feb 2008 21:23:57 -0500) 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 8 (1) 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:90472 Archived-At: In article , Stefan Monnier writes: > > But, as you changed the numeric value of of `normal' weight > > from 100 to 101, ftfont_list doesn't include regular weight > > font (most of ttf has regular weight). > Why does it only accept an exact-match? Because that's the spec I desided for that API of (struct font_driver *)->list. I wanted to distinguish required (i.e. mandatory) font-spec and preferred font-spec. `list' returns fonts matching with a required spec, and font-selection routine find a font besting matching with preferred spec from them. So, we should not give FONT-SPEC containing just preferred specs to `list'. --- Kenichi Handa handa@ni.aist.go.jp