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: Wed, 18 Jun 2008 09:30:53 +0900 Message-ID: References: <87wskoxgi2.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 1213749080 5686 80.91.229.12 (18 Jun 2008 00:31:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2008 00:31:20 +0000 (UTC) Cc: miles@gnu.org, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 18 02:32:03 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 1K8lak-00006Y-Bc for ged-emacs-devel@m.gmane.org; Wed, 18 Jun 2008 02:32:02 +0200 Original-Received: from localhost ([127.0.0.1]:55494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8lZw-0004ai-31 for ged-emacs-devel@m.gmane.org; Tue, 17 Jun 2008 20:31:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8lZr-0004Y1-Cb for emacs-devel@gnu.org; Tue, 17 Jun 2008 20:31:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8lZp-0004WM-ST for emacs-devel@gnu.org; Tue, 17 Jun 2008 20:31:07 -0400 Original-Received: from [199.232.76.173] (port=48088 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8lZp-0004W0-Lk for emacs-devel@gnu.org; Tue, 17 Jun 2008 20:31:05 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:65300) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K8lZj-00077N-Lw; Tue, 17 Jun 2008 20:31:00 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id m5I0VgSR001421; Wed, 18 Jun 2008 09:31:42 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id m5I0UsKW011190; Wed, 18 Jun 2008 09:30:54 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id m5I0UrTP004412; Wed, 18 Jun 2008 09:30:53 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1K8lZd-0000n0-I7; Wed, 18 Jun 2008 09:30:53 +0900 In-reply-to: <87wskoxgi2.fsf@stupidchicken.com> (message from Chong Yidong on Tue, 17 Jun 2008 10:50:29 -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:99375 Archived-At: In article <87wskoxgi2.fsf@stupidchicken.com>, Chong Yidong writes: > Kenichi Handa 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. > Why should it affect the :weight and :slant parameters? The user can > specify "Dejavu Serif Bold Itallic" or "Dejavu Serif:bold:italic", etc. Because just "Dejavu Serif" doesn't specify any style-related properties. --- Kenichi Handa handa@ni.aist.go.jp