From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: `font-face-attributes' sometimes returns bogus :height value Date: Wed, 18 Jun 2008 06:13:21 +0900 Message-ID: <87y753sr2m.fsf@catnip.gol.com> References: <87wskoxgi2.fsf@stupidchicken.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1213737235 5028 80.91.229.12 (17 Jun 2008 21:13:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2008 21:13:55 +0000 (UTC) Cc: emacs-devel@gnu.org, Kenichi Handa To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 17 23:14:39 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 1K8iVc-0004JG-Am for ged-emacs-devel@m.gmane.org; Tue, 17 Jun 2008 23:14:32 +0200 Original-Received: from localhost ([127.0.0.1]:47322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8iUn-0002Vb-Sn for ged-emacs-devel@m.gmane.org; Tue, 17 Jun 2008 17:13:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8iUd-0002S8-8L for emacs-devel@gnu.org; Tue, 17 Jun 2008 17:13:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8iUc-0002RZ-Je for emacs-devel@gnu.org; Tue, 17 Jun 2008 17:13:30 -0400 Original-Received: from [199.232.76.173] (port=39503 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8iUc-0002RR-D7 for emacs-devel@gnu.org; Tue, 17 Jun 2008 17:13:30 -0400 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:49630) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K8iUX-0003hk-68; Tue, 17 Jun 2008 17:13:25 -0400 Original-Received: from 218.33.236.238.eo.eaccess.ne.jp ([218.33.236.238] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1K8iUU-0002Id-NP; Wed, 18 Jun 2008 06:13:22 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 0AFF12F3D; Wed, 18 Jun 2008 06:13:21 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: <87wskoxgi2.fsf@stupidchicken.com> (Chong Yidong's message of "Tue, 17 Jun 2008 10:50:29 -0400") Original-Lines: 31 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:99370 Archived-At: Chong Yidong writes: >>> 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. I think the main point is that while `font-face-attributes' _can_ return :weight, :width, etc., parameters, it should only do so if the user explicitly specified them. Right now it seems to always do so. So, ideally: (font-face-attributes "Dejavu Serif") => (:family "Dejavu Serif") (font-face-attributes "Dejavu Serif-10") => (:family "Dejavu Serif" :height 100) (font-face-attributes "Dejavu Serif Italic") => (:family "Dejavu Serif" :slant italic) etc. -- Conservative, n. A statesman enamored of existing evils, as opposed to a Liberal, who wants to replace them with new ones.