[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Q: Custom fontsets and using a non-default fontset
From: |
Eli Zaretskii |
Subject: |
Re: Q: Custom fontsets and using a non-default fontset |
Date: |
Tue, 03 Sep 2024 15:18:21 +0300 |
> 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.