GNU bug report logs - #2659
23.0.91; set-face-attribute :height float on a Mac

Previous Next

Package: emacs;

Reported by: Alex Schröder <kensanata <at> gmail.com>

Date: Fri, 13 Mar 2009 15:20:03 UTC

Severity: minor

Fixed in version 23.3

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #22 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Miles Bader <miles <at> gnu.org>
To: gnu-emacs-bug <at> moderators.individual.net
Subject: Re: bug#2659: 23.0.91; set-face-attribute :height float on a Mac
Date: Mon, 16 Mar 2009 10:31:54 +0900
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:
>> Debugger entered--Lisp error: (error "Invalid default face height" 1.1)
>
> This says that you can't specify "1.1 times the underlying face" because
> the default face as no underlying face.

Note that because the default face height is always absolute and fixed,
it should be easy enough to do what you want by retrieving the current
height and multiplying it yourself.

e.g.
(set-face-attribute 'default nil
                    :height (truncate
                             (* (face-attribute 'default :height) 1.1)))

-Miles

-- 
Virtues, n. pl. Certain abstentions.





This bug report was last modified 14 years and 168 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.