Re: [HarfBuzz] Support for Stylistic Sets

2019-09-15 Thread Eli Zaretskii
> Date: Sun, 15 Sep 2019 12:37:25 +0100 > From: Richard Wordingham > > > > > 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. But Emacs currently doesn't know

Re: [HarfBuzz] Support for Stylistic Sets

2019-09-15 Thread Eli Zaretskii
> From: Nikolay Sivov > Date: Sun, 15 Sep 2019 10:03:01 +0300 > Cc: Richard Wordingham , > Harfbuzz > > > Essentially yes, i.e. unsupported features will simply be ignored. > > Then there's no need to know whether a feature is supported. Thanks. > > MS Word for example shows a

Re: [HarfBuzz] Support for Stylistic Sets

2019-09-15 Thread Ebrahim Byagowi
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

Re: [HarfBuzz] Support for Stylistic Sets

2019-09-15 Thread Richard Wordingham
On Sun, 15 Sep 2019 10:03:01 +0300 Nikolay Sivov wrote: > On Sun, Sep 15, 2019 at 5:33 AM Eli Zaretskii 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

Re: [HarfBuzz] Support for Stylistic Sets

2019-09-15 Thread Nikolay Sivov
On Sun, Sep 15, 2019 at 5:33 AM Eli Zaretskii wrote: > > Date: Sat, 14 Sep 2019 21:33:00 +0100 > > From: Richard Wordingham > > Cc: harfbuzz@lists.freedesktop.org > > > > On Sat, 14 Sep 2019 21:15:04 +0300 > > Eli Zaretskii wrote: > > > > > > Date: Sat, 14 Sep 2019 18:13:25 +0100 > > > > From:

Re: [HarfBuzz] Support for Stylistic Sets

2019-09-14 Thread Eli Zaretskii
> Date: Sat, 14 Sep 2019 21:33:00 +0100 > From: Richard Wordingham > Cc: harfbuzz@lists.freedesktop.org > > On Sat, 14 Sep 2019 21:15:04 +0300 > Eli Zaretskii wrote: > > > > Date: Sat, 14 Sep 2019 18:13:25 +0100 > > > From: Richard Wordingham > > > > > > I think it's safe to specify the use

Re: [HarfBuzz] Support for Stylistic Sets

2019-09-14 Thread Richard Wordingham
On Sat, 14 Sep 2019 21:15:04 +0300 Eli Zaretskii wrote: > > Date: Sat, 14 Sep 2019 18:13:25 +0100 > > From: Richard Wordingham > > > > I think it's safe to specify the use of unsupported features, in > > which case this is a luxury feature. > > you mean, specifying an unsupported feature

Re: [HarfBuzz] Support for Stylistic Sets

2019-09-14 Thread Eli Zaretskii
> Date: Sat, 14 Sep 2019 18:13:25 +0100 > From: Richard Wordingham > > I think it's safe to specify the use of unsupported features, in which > case this is a luxury feature. you mean, specifying an unsupported feature will not cause hb_shape to fail, but instead just use the nominal glyphs? >

Re: [HarfBuzz] Support for Stylistic Sets

2019-09-14 Thread Richard Wordingham
On Sat, 14 Sep 2019 18:59:56 +0300 Eli Zaretskii wrote: > The next question is how to know whether a given hb_font_t supports a > given feature? I think it's safe to specify the use of unsupported features, in which case this is a luxury feature. One complication is that features are provided

Re: [HarfBuzz] Support for Stylistic Sets

2019-09-14 Thread Eli Zaretskii
> From: Nikolay Sivov > Date: Sat, 14 Sep 2019 17:00:53 +0300 > Cc: Harfbuzz > > 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

Re: [HarfBuzz] Support for Stylistic Sets

2019-09-14 Thread Nikolay Sivov
On Sat, Sep 14, 2019 at 4:54 PM Eli Zaretskii 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