[HarfBuzz] Exposing attachment tree / Arabic joining to shaping clients

Behdad Esfahbod behdad at behdad.org
Wed Nov 13 04:15:20 UTC 2019


On Tue, Nov 12, 2019 at 7:31 PM Martin Hosken <mhosken at gmail.com> wrote:

> Dear Behdad,
>
> > For reason that many of you know (letter-spacing, Arabic elongation,
> other
> > postprocessing) I like to expose attachment data to the shaping clients.
> > There's two separate pieces so far:
> >
> > - The Arabic joining info, which is applicable to all Arabic-like fonts
> > even the ones that do NOT use cursive joining.
> >
> > - Mark attachment and cursive attachment.  These form a tree with a
> > attachment-type enum.
> >
> > I'm not sure which slots in the pos buffer to expose this in.  The latter
> > definitely belongs to the pos buffer, whereas the former is more a
> property
> > of the text.  So I feel like we should expose them separately.
> >
> > Ideas?
>
> Pulling back into the more generic script question, I think both may be
> covered by giving the attachment parent and attachment type. Thus Arabic
> joining is via cursive attachment


Except that simple linear Arabic-like fonts don't do cursive joining.
Letters just line up next to each other.


> and diacritic attachment via mark attachment. IMHO, this would then also
> apply naturally to other scripts and give some help with regard to
> justification.
>
> Yours,
> Martin
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/harfbuzz



-- 
behdad
http://behdad.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20191112/3015bd65/attachment.html>


More information about the HarfBuzz mailing list