[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set-face-attribute: apparent bug or doc error
From: |
Eli Zaretskii |
Subject: |
Re: set-face-attribute: apparent bug or doc error |
Date: |
Wed, 26 Aug 2020 15:41:41 +0300 |
> 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.