From: Tassilo Horn <tsdh@gnu.org>
To: ken <gebser@mousecar.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: set-face-attribute: apparent bug or doc error
Date: Wed, 26 Aug 2020 14:58:03 +0200 [thread overview]
Message-ID: <87eent5ztw.fsf@gnu.org> (raw)
In-Reply-To: <832a7d52-6629-a9f3-c594-ddc6f0966374@mousecar.com> (ken's message of "Wed, 26 Aug 2020 08:34:13 -0400")
ken <gebser@mousecar.com> writes:
> (set-face-attribute 'default nil :family "alegreya" :foundry "misc"
> :slant normal :weight "medium" :height 258 :width "normal")
^^^^^^
> yields error:
>
> Debugger entered--Lisp error: (void-variable normal)
> (set-face-attribute 'default nil :family "alegreya" :foundry "misc"
> :slant normal :weight "medium" :height 258 :width "normal")
> ....
>
> The doc string, however, says:
>
> ‘:slant’
>
> VALUE specifies the slant of the font to use. It must be one of the
> symbols ‘italic’, ‘oblique’, ‘normal’, ‘reverse-italic’, or
> ‘reverse-oblique’.
Exactly, it must be a symbol, so use :slant 'normal.
Bye,
Tassilo
next prev parent reply other threads:[~2020-08-26 12:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-26 12:34 set-face-attribute: apparent bug or doc error ken
2020-08-26 12:41 ` Eli Zaretskii
2020-08-26 12:58 ` Tassilo Horn [this message]
2020-08-26 19:19 ` ken
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=87eent5ztw.fsf@gnu.org \
--to=tsdh@gnu.org \
--cc=gebser@mousecar.com \
--cc=help-gnu-emacs@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.
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).