From: Soham Gumaste <sohamg2@gmail.com>
To: Ship Mints <shipmints@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Q: Custom fontsets and using a non-default fontset
Date: Tue, 3 Sep 2024 12:50:29 -0500 [thread overview]
Message-ID: <CAAr-Hh0DCirWGO30htswO59OmpkOJh6T12M0-xThAjuVKFSKbg@mail.gmail.com> (raw)
In-Reply-To: <CAN+1HbocZDLGtEiUtNRUJYR1mMraBwCo=zKhj81mCOcyys4qeQ@mail.gmail.com>
Thanks for the reply, Eli!
>
> On Tue, Sep 3, 2024 at 8:19 AM Eli Zaretskii <eliz@gnu.org> wrote:
>>
>>
>> > I did notice I am unable to set my own fontset as the default or the
>> > one in use as given by the frame-parameter 'font.
>>
>> If you tried to use the fontset you created as the 'font' parameter of
>> a frame, please show the simplest test case to reproduce this
>> (preferably as a bug report), and let's take it from there. It should
>> work, but without knowing what you tried and how it failed, it is
>> impossible to answer your questions intelligently.
>>
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")))
Thanks
next prev parent reply other threads:[~2024-09-03 17:50 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 [this message]
2024-09-04 11:16 ` Eli Zaretskii
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=CAAr-Hh0DCirWGO30htswO59OmpkOJh6T12M0-xThAjuVKFSKbg@mail.gmail.com \
--to=sohamg2@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=shipmints@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.