emacs-devel
[Top][All Lists]
Advanced

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

Re: set-face-attribute and floating point :height values


From: Giorgos Keramidas
Subject: Re: set-face-attribute and floating point :height values
Date: Mon, 31 Jan 2011 12:46:44 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

On Mon, 31 Jan 2011 15:42:21 -0500, Glenn Morris <address@hidden> 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




reply via email to

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