[HarfBuzz] List OpenType features
Nikolay Sivov
bunglehead at gmail.com
Wed Nov 18 04:40:13 PST 2015
On 18.11.2015 15:27, Edu García wrote:
> Thank you!
>
> That's the one I suspected. However, as its second parameter, it wants a
> "hb_tag_t table_tag". What is that table tag, and how do I get it?
There's only two possible tags you can use in this case - HB_OT_TAG_GSUB
and HB_OT_TAG_GPOS.
Also,
> it asks for an offset, but I guess this is so you can get the list of
> features in batches (so I can ask for 10 features, then another 10, etc)
>
Guess so, if you don't want to allocate for some reason. From quick look
it seems that if you call it with NULL 'feature_count' it will return
how many features it got for a table you specified.
> Again, thanks!
>
> On Wed, Nov 18, 2015 at 11:25 PM, Nikolay Sivov <bunglehead at gmail.com
> <mailto:bunglehead at gmail.com>> wrote:
>
> On 18.11.2015 15:21, Edu García wrote:
>
> Hi,
>
> What function(s) should I use to list all the features a particular
> OpenType font supports?
>
>
> Probably hb_ot_layout_table_get_feature_tags().
>
>
> Thanks
>
>
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> <mailto:HarfBuzz at lists.freedesktop.org>
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
>
>
>
More information about the HarfBuzz
mailing list