From: "समीर सिंह Sameer Singh" <lumarzeli30@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Supporting stylistic sets
Date: Sat, 24 Sep 2022 22:41:40 +0530 [thread overview]
Message-ID: <CAOR1sLwvdPBWP0Uk-dDy_VEcffCP6XTBKJyXbZmPf3QgeEh3Ow@mail.gmail.com> (raw)
In-Reply-To: <CAOR1sLziWYfxrJp7ccGngg=8eRe9-fbgducKoOQh9_huJ2j0rw@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2229 bytes --]
Forgot to attach, here it is.
On Sat, Sep 24, 2022 at 10:39 PM समीर सिंह Sameer Singh <
lumarzeli30@gmail.com> wrote:
> On Sat, Sep 24, 2022 at 9:44 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
>> > From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
>> > Date: Sat, 24 Sep 2022 21:20:03 +0530
>> > Cc: emacs-devel@gnu.org
>> >
>> > On Sat, Sep 24, 2022 at 8:52 PM Eli Zaretskii <eliz@gnu.org> wrote:
>> >
>> > > From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
>> > > Date: Sat, 24 Sep 2022 20:32:26 +0530
>> > > Cc: emacs-devel@gnu.org
>> > >
>> > > no, the same would work
>> >
>> > Then I don't understand how will HarfBuzz know to apply the first tag
>> > to 'i', but the second one to 'l'.
>> >
>> > The font file has a GSUB table for this purpose
>>
>> I'm sorry, I still don't understand. (I'm not an expert on fonts, so
>> I'd appreciate a slightly more detailed explanations.) Are you saying
>> that each tag can be used by a single character in a font? IOW, no
>> feature tag can ever be shared by two or more characters in a font?
>>
>
> IIUC, then yes.
>
>
>> The HarfBuzz docs says:
>>
>> The hb_feature_t is the structure that holds information about
>> requested feature application. The feature will be applied with the
>> given value to all glyphs which are in clusters between start
>> (inclusive) and end (exclusive).
>>
>> This seems to say that we need to set START and END of each feature to
>> buffer positions of the characters to which we want the feature to be
>> applied. That is why I said that START and END should be set
>> separately for each feature, according to the positions of the
>> corresponding characters in the buffer submitted to hb_shape_full.
>>
>
> I don't think that is the case, I have attached a slightly modified
> harfbuzz-tutorial[1],
> where I have defined four features for a,g,i and l respectively with the
> same start and end variables.
> It works as expected.
>
> You can provide it with the path to a firacode font file and the text
> which it has to display and it will produce a png.
>
> [1] https://github.com/harfbuzz/harfbuzz-tutorial
>
[-- Attachment #1.2: Type: text/html, Size: 3542 bytes --]
[-- Attachment #2: harfbuzz-tutorial.tar.gz --]
[-- Type: application/gzip, Size: 24389 bytes --]
next prev parent reply other threads:[~2022-09-24 17:11 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
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 [this message]
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=CAOR1sLwvdPBWP0Uk-dDy_VEcffCP6XTBKJyXbZmPf3QgeEh3Ow@mail.gmail.com \
--to=lumarzeli30@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/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.