all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Soham Gumaste <sohamg2@gmail.com>
Cc: shipmints@gmail.com, emacs-devel@gnu.org
Subject: Re: Q: Custom fontsets and using a non-default fontset
Date: Wed, 04 Sep 2024 14:16:02 +0300	[thread overview]
Message-ID: <86y1476559.fsf@gnu.org> (raw)
In-Reply-To: <CAAr-Hh0DCirWGO30htswO59OmpkOJh6T12M0-xThAjuVKFSKbg@mail.gmail.com> (message from Soham Gumaste on Tue, 3 Sep 2024 12:50:29 -0500)

> From: Soham Gumaste <sohamg2@gmail.com>
> Date: Tue, 3 Sep 2024 12:50:29 -0500
> Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
> 
> I used this [1] as init.el and ran `emacs --init-directory=.`. I
> checked the frame font with (frame-parameter nil 'font) and the output
> was NOT "fontset-mine" but rather a XLFD string representing the ascii
> font I chose. My 'emoji script font worked. Please let me know if this
> is a bug report or an error in my expectation of the output.
> 
> [1]:
> (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.



  reply	other threads:[~2024-09-04 11:16 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 [this message]
2024-09-08  3:44         ` Yuan Fu
2024-09-08  4:48           ` Eli Zaretskii

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=86y1476559.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.