[HarfBuzz] Support for Stylistic Sets

Ebrahim Byagowi ebraminio at gmail.com
Sun Sep 15 11:50:23 UTC 2019


Hey there,

> The next question is how to know whether a given hb_font_t supports a
given feature?

Apparently you won't need this anymore. If you do however, you can use
`hb_ot_layout_language_find_feature`, it has the mentioned the
complications, after that you can even issue
`hb_ot_layout_feature_get_name_ids` to get name ids fonts provide for the
ssXX and cvXX features, have a look at this test,


https://github.com/harfbuzz/harfbuzz/blob/a33f238f8888cc969e1e393deda0518fb8dd6b13/test/api/test-ot-name.c#L35-L70

cvXX are apparently newer and can provide even more information so you may
like to encourage that in other applications you may have. Thanks!


On Sun, Sep 15, 2019 at 4:07 PM Richard Wordingham <
richard.wordingham at ntlworld.com> wrote:

> On Sun, 15 Sep 2019 10:03:01 +0300
> Nikolay Sivov <bunglehead at gmail.com> wrote:
>
> > On Sun, Sep 15, 2019 at 5:33 AM Eli Zaretskii <eliz at gnu.org> wrote:
>
> > > Then there's no need to know whether a feature is supported.
> > > Thanks.
>
> > MS Word for example shows a preview for each support ssXX feature,
> > and user can select one they want.
> >
> > I don't know how (or why) you plan to use that for emacs, but you'll
> > need to have some logic to figure out which one to enable.
>
> I believe Emacs systems include intelligent wetware.
>
> I hope Eli's planning on allowing other features.  Some features may
> increase the differences between same script confusables, e.g. '0' v.
> 'O', 'l' v. '1' and 'ɡ' v. 'g'.
>
> > > > Does HarfBuzz guess the language?
> > >
> > > Yes.
>
> It seems to use the current locale.  That will usually be wrong for
> cuneiform, and generally be wrong for multilingual text.
>
> Richard.
> _______________________________________________
> 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/20190915/11f96864/attachment.html>


More information about the HarfBuzz mailing list