From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: set-face-attribute and floating point :height values
Date: Mon, 31 Jan 2011 12:46:44 -0800 [thread overview]
Message-ID: <xeia7hdkpzrf.fsf@kobe.laptop> (raw)
In-Reply-To: <4zd3ncg5zm.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 31 Jan 2011 15:42:21 -0500")
On Mon, 31 Jan 2011 15:42:21 -0500, Glenn Morris <rgm@gnu.org> 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
next prev parent reply other threads:[~2011-01-31 20:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-31 20:33 set-face-attribute and floating point :height values Giorgos Keramidas
2011-01-31 20:42 ` Glenn Morris
2011-01-31 20:46 ` Giorgos Keramidas [this message]
2011-01-31 22:04 ` Drew Adams
2011-02-01 3:09 ` Giorgos Keramidas
2011-02-01 3:56 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xeia7hdkpzrf.fsf@kobe.laptop \
--to=keramida@ceid.upatras.gr \
--cc=emacs-devel@gnu.org \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).