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 14:58:42 +0000





Sent with Proton Mail secure email.

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

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

and

(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]