emacs-devel
[Top][All Lists]
Advanced

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

Re: Q: Custom fontsets and using a non-default fontset


From: Eli Zaretskii
Subject: Re: Q: Custom fontsets and using a non-default fontset
Date: Sun, 08 Sep 2024 07:48:20 +0300

> From: Yuan Fu <casouri@gmail.com>
> Date: Sat, 7 Sep 2024 20:44:01 -0700
> Cc: Soham Gumaste <sohamg2@gmail.com>,
>  shipmints@gmail.com,
>  emacs-devel@gnu.org
> 
> >> (create-fontset-from-fontset-spec
> >> (font-xlfd-name
> >>  (font-spec
> >>   :name "Fira Code" :height 130 :weight 'medium
> >>   :registry "fontset-mine")))
> >> 
> >> (set-fontset-font "fontset-mine" 'emoji
> >>                  (font-spec :family "Noto Color Emoji" :foundry "NONE"))
> >> 
> >> (setq default-frame-alist '((font . "fontset-mine")))
> > 
> > What you see is the expected behavior.  That's what setting a frame's
> > 'font' parameter does when the value is a fontset.
> 
> You need to use the (undocumented) :fontset keyword.

That's for a face, not for a frame.  IOW, it will not affect all the
faces used on a frame, only that single face.



reply via email to

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