[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: set-face-attribute: apparent bug or doc error
From: |
Tassilo Horn |
Subject: |
Re: set-face-attribute: apparent bug or doc error |
Date: |
Wed, 26 Aug 2020 14:58:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
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