From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Problem with narrow vs condensed fonts Date: Mon, 25 Feb 2008 23:48:37 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204001334 4436 80.91.229.12 (26 Feb 2008 04:48:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Feb 2008 04:48:54 +0000 (UTC) Cc: schwab@suse.de, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 26 05:49:19 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 1JTrki-00010F-QP for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2008 05:49:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTrkC-00009O-Uj for ged-emacs-devel@m.gmane.org; Mon, 25 Feb 2008 23:48:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTrk8-00009I-TK for emacs-devel@gnu.org; Mon, 25 Feb 2008 23:48:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTrk7-00008u-Bi for emacs-devel@gnu.org; Mon, 25 Feb 2008 23:48:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTrk7-00008r-6f for emacs-devel@gnu.org; Mon, 25 Feb 2008 23:48:39 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JTrk6-0006t4-RS for emacs-devel@gnu.org; Mon, 25 Feb 2008 23:48:39 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAEcpw0dMCpz5Wmdsb2JhbACQVAEggTSaKn8 X-IronPort-AV: E=Sophos;i="4.25,405,1199682000"; d="scan'208";a="15054117" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 25 Feb 2008 23:48:38 -0500 Original-Received: from pastel.home ([76.10.156.249]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id GGW26938; Mon, 25 Feb 2008 23:48:38 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id E62897FA7; Mon, 25 Feb 2008 23:48:37 -0500 (EST) In-Reply-To: (Kenichi Handa's message of "Tue, 26 Feb 2008 12:10:13 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:90481 Archived-At: >> > 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'. Right: the defaulting to "normal" should be done when the value is later used as a preferred spec, but a wildcard should be used instead if the value is later used as an exact spec. Stefan