unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: gnu-emacs-bug@moderators.individual.net
Subject: bug#2659: 23.0.91; set-face-attribute :height float on a Mac
Date: Mon, 16 Mar 2009 10:31:54 +0900	[thread overview]
Message-ID: <87ab7m9rsl.fsf@catnip.gol.com> (raw)
In-Reply-To: mailman.3128.1237105313.31690.bug-gnu-emacs@gnu.org

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







  parent reply	other threads:[~2009-03-16  1:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-13 15:11 bug#2659: 23.0.91; set-face-attribute :height float on a Mac Alex Schröder
2009-03-13 16:08 ` Stefan Monnier
2009-03-13 16:22   ` Alex Schröder
     [not found] ` <mailman.3128.1237105313.31690.bug-gnu-emacs@gnu.org>
2009-03-16  1:31   ` Miles Bader [this message]
2011-02-03  6:55     ` Glenn Morris

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=87ab7m9rsl.fsf@catnip.gol.com \
    --to=miles@gnu.org \
    --cc=2659@emacsbugs.donarmstrong.com \
    --cc=gnu-emacs-bug@moderators.individual.net \
    /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).