help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting face attribute with height specification


From: Heime
Subject: Re: Setting face attribute with height specification
Date: Sun, 23 Jun 2024 17:31:02 +0000

On Sunday, June 23rd, 2024 at 2:58 PM, Heime <heimeborgia@protonmail.com> wrote:

> On Sunday, June 23rd, 2024 at 5:08 AM, Eli Zaretskii eliz@gnu.org wrote:
>
> > > Date: Sat, 22 Jun 2024 21:59:55 +0000
> > > From: Heime heimeborgia@protonmail.com
> > >
> > > Is there a possibility to sent the font height when using these
> > >
> > > (set-face-attribute 'default nil :font "URW Chancery L")
> > >
> > > (set-face-attribute 'default nil :font "UnPilgia")
> >
> > Yes, but only if you use :family, not :font. You should use :family
> > and :height attributes. Using :font specifies the font and its
> > height.
>
>
> Could not get tho family to be set correctly with

The following is telling me 

Invalid face attribute :height (string-to-number face-height)

> (buffer-face-mode-invoke
> '(:family "URW Chancery L" :height (string-to-number face-height)) t)

And this does not change the family (when using "Wargames" for instance)

> (set-face-attribute 'default nil
> :family "URW Chancery L" :height (string-to-number face-height))
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]