From: Eli Zaretskii <eliz@gnu.org>
To: "समीर सिंह Sameer Singh" <lumarzeli30@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Supporting stylistic sets
Date: Sat, 24 Sep 2022 09:55:25 +0300 [thread overview]
Message-ID: <83r101ntwi.fsf@gnu.org> (raw)
In-Reply-To: <CAOR1sLym0_wz5dCponK1e41_4WR4vcZRgUJfQ26RUW5f6jH0og@mail.gmail.com> (message from समीर सिंह Sameer Singh on Sat, 24 Sep 2022 10:13:47 +0530)
> From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> Date: Sat, 24 Sep 2022 10:13:47 +0530
> Cc: emacs-devel@gnu.org
>
> That means all text that uses the font will use that stylistic-set.
> Is that good enough? What if you want to have the same font with and
> without a specific stylistic-set in the same document?.
>
> Isn't the point of stylistic-set is that if you don't like a particular glyph of a font you can interchange it for
> another, therefore I don't
> see why someone would have the same font with and without the stylistic-set in the same document.
You are thinking about one particular use case. There might be
others.
> For example: Tiro Bangla had set the stylistic set because the users could not agree how the হ্+ন and হ্+ণ
> conjuncts should look[1].
> It is the case for FiraCode too, simple variations of glyphs which the user can switch out according to their
> preference.
If we want to support the use case of "just change the appearance of a
particular character", then a much simpler implementation would be to
use the existing character-composition machinery. Specifically:
. add a suitable entry to composition-function-table, with a regexp
that matches the characters you want to affect
. provide a new variable that can be used to specify which, if any,
stylistic feature to use for each character (this could be a
char-table, for example)
. modify hbfont_shape to consult the above variable and apply the
requested features to the affected character(s)
Btw, is it always the case that, when using a particular font, users
will want to apply the same stylistic-set feature to all of the
characters from the font that have alternative glyphs? If not, then
font-level feature sets are not going to solve that, and we will need
to be able to specify this for each character individually.
> And if the font is not the default face's font, it means you need to
> setup a special face for using it anyway.
>
> You mean for scripts like Bangla, Devanagari etc?
> For them defining their font-spec wouldn't work?
I meant that the way to use a special font in Emacs, for ASCII
characters, is to define a special face that uses that font.
next prev parent reply other threads:[~2022-09-24 6:55 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-23 12:54 Supporting stylistic sets समीर सिंह Sameer Singh
2022-09-23 15:37 ` Eli Zaretskii
2022-09-23 17:27 ` समीर सिंह Sameer Singh
2022-09-23 17:31 ` Nicolas Ouellet-payeur
2022-09-23 18:09 ` Eli Zaretskii
2022-09-23 19:20 ` Nicolas Ouellet-payeur
2022-09-23 20:10 ` Eli Zaretskii
[not found] ` <CADuLPF5sKi4NMcGSdy1GAi8=KHBfUcVa3tV=XwnhPfWxroAJCA@mail.gmail.com>
2022-09-26 17:07 ` Eli Zaretskii
2022-09-26 17:46 ` Nicolas Ouellet-payeur
2022-09-26 18:28 ` Eli Zaretskii
2022-09-26 19:06 ` Yuri Khan
2022-09-26 19:20 ` Eli Zaretskii
2022-09-23 17:55 ` Eli Zaretskii
2022-09-23 18:26 ` Visuwesh
2022-09-23 18:55 ` Eli Zaretskii
2022-09-24 4:59 ` Visuwesh
2022-09-24 6:33 ` Eli Zaretskii
2022-09-24 8:42 ` Visuwesh
2022-09-24 4:43 ` समीर सिंह Sameer Singh
2022-09-24 6:55 ` Eli Zaretskii [this message]
2022-09-24 8:00 ` समीर सिंह Sameer Singh
2022-09-24 8:27 ` Eli Zaretskii
2022-09-24 8:34 ` समीर सिंह Sameer Singh
2022-09-24 8:38 ` Eli Zaretskii
2022-09-24 8:41 ` समीर सिंह Sameer Singh
2022-09-24 8:50 ` समीर सिंह Sameer Singh
2022-09-24 12:09 ` समीर सिंह Sameer Singh
2022-09-24 12:35 ` Eli Zaretskii
2022-09-24 12:45 ` समीर सिंह Sameer Singh
2022-09-24 13:00 ` Eli Zaretskii
2022-09-24 13:10 ` समीर सिंह Sameer Singh
2022-09-24 14:18 ` Eli Zaretskii
2022-09-24 14:26 ` समीर सिंह Sameer Singh
2022-09-24 15:01 ` Eli Zaretskii
2022-09-24 15:02 ` समीर सिंह Sameer Singh
2022-09-24 15:21 ` Eli Zaretskii
2022-09-24 15:50 ` समीर सिंह Sameer Singh
2022-09-24 16:14 ` Eli Zaretskii
2022-09-24 16:42 ` Yuri Khan
2022-09-24 17:02 ` Eli Zaretskii
2022-09-24 17:09 ` समीर सिंह Sameer Singh
2022-09-24 17:11 ` समीर सिंह Sameer Singh
2022-09-25 22:19 ` Clément Pit-Claudel
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=83r101ntwi.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=lumarzeli30@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.