unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: set-face-attribute: apparent bug or doc error
Date: Wed, 26 Aug 2020 15:41:41 +0300	[thread overview]
Message-ID: <83tuwp37ga.fsf@gnu.org> (raw)
In-Reply-To: <832a7d52-6629-a9f3-c594-ddc6f0966374@mousecar.com> (message from ken on Wed, 26 Aug 2020 08:34:13 -0400)

> From: ken <gebser@mousecar.com>
> Date: Wed, 26 Aug 2020 08:34:13 -0400
> 
> Executing
> 
> (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’.

Try

    :slant 'normal

(with the apostrophe), since the doc strings says it wants a symbol.



  reply	other threads:[~2020-08-26 12:41 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 [this message]
2020-08-26 12:58 ` Tassilo Horn
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=83tuwp37ga.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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).