bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Miles Bader
Subject: bug#2659: 23.0.91; set-face-attribute :height float on a Mac
Date: Mon, 16 Mar 2009 10:31:54 +0900

Stefan Monnier <address@hidden> 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.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]