[HarfBuzz] Support for Stylistic Sets

Nikolay Sivov bunglehead at gmail.com
Sat Sep 14 14:00:53 UTC 2019


On Sat, Sep 14, 2019 at 4:54 PM Eli Zaretskii <eliz at gnu.org> wrote:

> Hi,
>
> AFAIU, HarfBuzz does support Stylistic Sets, but it is not clear to me
> what should an application do to request glyphs corresponding to a
> certain stylistic set.
>
> Suppose an application wants to display a text string using a specific
> stylistic set -- could someone please outline the sequence of API
> calls to get that, or point me to some documentation which describes
> that?
>

Hi, Eli.

I think it must be a matter of enabling features explicitly, in case you're
asking about it would be features ss01-ss20, see hb_shape() arguments
documentation.
Basically, you set hb_feature_t fields to appropriate tag, value (1 for
enabled), and start/end limits. That should do it.


>
> TIA
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/harfbuzz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/harfbuzz/attachments/20190914/c46cf3e0/attachment.html>


More information about the HarfBuzz mailing list