all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Yuan Fu <casouri@gmail.com>
Cc: sohamg2@gmail.com, shipmints@gmail.com, emacs-devel@gnu.org
Subject: Re: Q: Custom fontsets and using a non-default fontset
Date: Sun, 08 Sep 2024 07:48:20 +0300	[thread overview]
Message-ID: <86wmjmwy23.fsf@gnu.org> (raw)
In-Reply-To: <CD86A20F-8C3A-41C4-883E-B644300A39CD@gmail.com> (message from Yuan Fu on Sat, 7 Sep 2024 20:44:01 -0700)

> 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	other threads:[~2024-09-08  4:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-02 20:49 Q: Custom fontsets and using a non-default fontset Soham Gumaste
2024-09-03 12:18 ` Eli Zaretskii
2024-09-03 14:00   ` Ship Mints
2024-09-03 17:50     ` Soham Gumaste
2024-09-04 11:16       ` Eli Zaretskii
2024-09-08  3:44         ` Yuan Fu
2024-09-08  4:48           ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86wmjmwy23.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=casouri@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=shipmints@gmail.com \
    --cc=sohamg2@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.