From: Ship Mints <shipmints@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Soham Gumaste <sohamg2@gmail.com>, emacs-devel@gnu.org
Subject: Re: Q: Custom fontsets and using a non-default fontset
Date: Tue, 3 Sep 2024 10:00:50 -0400 [thread overview]
Message-ID: <CAN+1HbocZDLGtEiUtNRUJYR1mMraBwCo=zKhj81mCOcyys4qeQ@mail.gmail.com> (raw)
In-Reply-To: <86seuh6icy.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 2108 bytes --]
Yuan Fu wrote about fontsets on his blog and this article might be helpful:
https://archive.casouri.cc/note/2021/fontset/
On Tue, Sep 3, 2024 at 8:19 AM Eli Zaretskii <eliz@gnu.org> wrote:
> > From: Soham Gumaste <sohamg2@gmail.com>
> > Date: Mon, 2 Sep 2024 15:49:41 -0500
> >
> > Recently I got too curious for my own good while messing with emacs
> > (as one does) and discovered fontsets and transparent usage of
> > multiple fonts for different unicode points/scripts/ranges.
> >
> > I discovered this [1] reply by Eli about *not* messing with creating
> > your own fontset and rather just using the default "fontset-default".
>
> I wrote that for the case that the user wants to customize the fonts
> Emacs choses for different scripts. In that case, customizing the
> default font is the best alternative.
>
> > 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.
>
> > How do I learn more about emacs fontsets?
>
> It depends on what you want to learn. Assuming you already read what
> we have about fontsets in the Emacs user manual and in the ELisp
> reference manual, further info is only in the sources, I'm afraid.
>
> > Is support for user defined
> > fontsets something thats in the works, or is it just an internal API?
>
> It is a working API that should just work.
>
> > The reply in [1] is around 6y old which is why I am curious about the
> > current state of this. A use-case I have in mind is switching to a
> > non-programmer fontset for presenting Org mode documents with
> > org-present.
>
> Fontsets were added to Emacs a long time ago, much longer than 6
> years, so I don't think there were any significant changes.
>
>
[-- Attachment #2: Type: text/html, Size: 2874 bytes --]
next prev parent reply other threads:[~2024-09-03 14:00 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 [this message]
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
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='CAN+1HbocZDLGtEiUtNRUJYR1mMraBwCo=zKhj81mCOcyys4qeQ@mail.gmail.com' \
--to=shipmints@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--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.