From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: Re: set-face-attribute and floating point :height values Date: Mon, 31 Jan 2011 12:46:44 -0800 Message-ID: References: <4zd3ncg5zm.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296506915 26045 80.91.229.12 (31 Jan 2011 20:48:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2011 20:48:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 31 21:48:31 2011 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.69) (envelope-from ) id 1Pk0fm-0006FT-R8 for ged-emacs-devel@m.gmane.org; Mon, 31 Jan 2011 21:48:31 +0100 Original-Received: from localhost ([127.0.0.1]:45155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pk0fW-00068A-8p for ged-emacs-devel@m.gmane.org; Mon, 31 Jan 2011 15:48:14 -0500 Original-Received: from [140.186.70.92] (port=49844 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pk0ef-0005h6-NX for emacs-devel@gnu.org; Mon, 31 Jan 2011 15:47:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pk0eV-0007Pn-8Y for emacs-devel@gnu.org; Mon, 31 Jan 2011 15:47:13 -0500 Original-Received: from igloo.linux.gr ([62.1.205.36]:40485) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pk0eP-0007O1-O1; Mon, 31 Jan 2011 15:47:06 -0500 X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.9, required 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90) X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-ID: p0VKkjti027598 Original-Received: from gkeramidas-glaptop.linux.gr (216-239-45-4.google.com [216.239.45.4]) (authenticated bits=0) by igloo.linux.gr (8.14.3/8.14.3/Debian-9.4) with ESMTP id p0VKkjti027598 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 31 Jan 2011 22:46:55 +0200 In-Reply-To: <4zd3ncg5zm.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 31 Jan 2011 15:42:21 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 62.1.205.36 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:135355 Archived-At: On Mon, 31 Jan 2011 15:42:21 -0500, Glenn Morris wrote: >Giorgos Keramidas wrote: >> (set-face-attribute 'default nil :family "DejaVu Sans Mono" :height 1.4) >> >> a debugger pops up with the following backtrace: >> >> Debugger entered--Lisp error: (error "Invalid default face height" 1.4) > > You're saying: make the default font height be 1.4 times the default > font height. The default font height must be absolute. > > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2659 Ah, I see now. So the underlying face must already have *some* :height value, so this is not the right way to specify the initial face-height. I reverted my ~/.emacs file to use: (set-face-attribute 'default nil :family "DejaVu Sans Mono" :height 100) Thanks, Giorgos