From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: `font-face-attributes' sometimes returns bogus :height value Date: Tue, 17 Jun 2008 10:50:29 -0400 Message-ID: <87wskoxgi2.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213714268 12363 80.91.229.12 (17 Jun 2008 14:51:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2008 14:51:08 +0000 (UTC) Cc: emacs-devel@gnu.org, Miles Bader To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 17 16:51:52 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 1K8cWu-0002dG-SU for ged-emacs-devel@m.gmane.org; Tue, 17 Jun 2008 16:51:29 +0200 Original-Received: from localhost ([127.0.0.1]:42668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8cW6-0000BM-E9 for ged-emacs-devel@m.gmane.org; Tue, 17 Jun 2008 10:50:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8cW2-0000AT-H7 for emacs-devel@gnu.org; Tue, 17 Jun 2008 10:50:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8cW0-00009X-Gd for emacs-devel@gnu.org; Tue, 17 Jun 2008 10:50:33 -0400 Original-Received: from [199.232.76.173] (port=52154 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8cW0-00009S-Ef for emacs-devel@gnu.org; Tue, 17 Jun 2008 10:50:32 -0400 Original-Received: from c-24-63-201-57.hsd1.ma.comcast.net ([24.63.201.57]:10226 helo=furry) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K8cVz-0007qa-Sm for emacs-devel@gnu.org; Tue, 17 Jun 2008 10:50:32 -0400 Original-Received: by furry (Postfix, from userid 1000) id 52054C056; Tue, 17 Jun 2008 10:50:29 -0400 (EDT) In-Reply-To: (Kenichi Handa's message of "Tue, 17 Jun 2008 13:55:16 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:99344 Archived-At: 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.