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: Soham Gumaste
Subject: Re: Q: Custom fontsets and using a non-default fontset
Date: Tue, 3 Sep 2024 12:50:29 -0500

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



reply via email to

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