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: `font-face-attributes' sometimes returns bogus :height value Date: Tue, 17 Jun 2008 13:55:16 +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 1213678540 24343 80.91.229.12 (17 Jun 2008 04:55:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2008 04:55:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 17 06:56:22 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 1K8TEz-0002As-J2 for ged-emacs-devel@m.gmane.org; Tue, 17 Jun 2008 06:56:21 +0200 Original-Received: from localhost ([127.0.0.1]:53568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8TEB-0008FL-AN for ged-emacs-devel@m.gmane.org; Tue, 17 Jun 2008 00:55:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8TE6-0008Er-Kj for emacs-devel@gnu.org; Tue, 17 Jun 2008 00:55:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8TE4-0008EI-Pj for emacs-devel@gnu.org; Tue, 17 Jun 2008 00:55:26 -0400 Original-Received: from [199.232.76.173] (port=32845 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8TE4-0008EF-M1 for emacs-devel@gnu.org; Tue, 17 Jun 2008 00:55:24 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:63053) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K8TDy-0003uB-LM; Tue, 17 Jun 2008 00:55:19 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m5H4u4eW017634; Tue, 17 Jun 2008 13:56:04 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m5H4tGsk002349; Tue, 17 Jun 2008 13:55:16 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id m5H4tGJC004962; Tue, 17 Jun 2008 13:55:16 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1K8TDw-0006VR-IR; Tue, 17 Jun 2008 13:55:16 +0900 In-reply-to: (message from Miles Bader on Tue, 17 Jun 2008 12:05:20 +0900) 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:99332 Archived-At: In article , Miles Bader writes: > If `font-face-attributes' is called without a specified height, it > returns an attribute list containing `:height nil', which is invalid. > E.g. > (font-face-attributes "Dejavu Serif") >>> (:family "Dejavu Serif" :height nil :weight normal :slant normal :width normal) > Since it is quite useful to work with no specified, I think this case > should be supported properly. > To make this work means either omitting the :height attribute entirely > from the returned attribute-list, or alternatively, keeping it, but > using `:height unspecified' for the height. I think :weight thru :width should also be omitted or `unspecified' in the above case. --- Kenichi Handa handa@ni.aist.go.jp