From: Yuan Fu <casouri@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Soham Gumaste <sohamg2@gmail.com>,
shipmints@gmail.com, emacs-devel@gnu.org
Subject: Re: Q: Custom fontsets and using a non-default fontset
Date: Sat, 7 Sep 2024 20:44:01 -0700 [thread overview]
Message-ID: <CD86A20F-8C3A-41C4-883E-B644300A39CD@gmail.com> (raw)
In-Reply-To: <86y1476559.fsf@gnu.org>
> On Sep 4, 2024, at 4:16 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>
>> 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.
You need to use the (undocumented) :fontset keyword. Also the :fontset keyword doesn’t work for ‘default face. You need to use (set-fontset-font "fontset-default" …).
Yuan
next prev parent reply other threads:[~2024-09-08 3:44 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 [this message]
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=CD86A20F-8C3A-41C4-883E-B644300A39CD@gmail.com \
--to=casouri@gmail.com \
--cc=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.