[HarfBuzz] List OpenType features
Edu García
arcnorj at gmail.com
Wed Nov 18 14:49:39 PST 2015
Also, I realize that I can use the function you provided in your last email
to query per language, but that doesn't change the fact that the first
function (which should return everything AFAIK) is a bit confusing to use
(or gives potentially incorrect results) :)
On Thu, Nov 19, 2015 at 9:47 AM, Edu García <arcnorj at gmail.com> wrote:
> I see, that's very interesting to know. I'll read that blogpost, although
> it seems that using that method alone won't tell me what features are
> aligned with what languages? Even if order is guaranteed, after fiddling a
> bit I got 11 duplicates for all features except for one of them (I got 7
> for that one). But unless Harfbuzz leaves holes there (I don't see them...)
> I don't know if the first 7 languages contain that feature, or the last 7
> ones, etc... Hope you understand what I mean.
>
> In any case, I'll read that blogpost, maybe I'm not getting the full
> extent of what you mean :).
>
> And no, I don't know what I'm looking for, I'm just trying to list the
> features for every font I load (to display them to the user) but I didn't
> know they're paired with the language, so I might need to change my
> approach :).
>
> Thanks again!
>
> On Thu, Nov 19, 2015 at 9:43 AM, Nikolay Sivov <bunglehead at gmail.com>
> wrote:
>
>> On 19.11.2015 0:45, Edu García wrote:
>>
>>> It worked, as expected :).
>>>
>>> However, I'm getting some curious results, and I'm not sure if it's
>>> because of my C rustiness or the fact that I'm running Harfbuzz with
>>> Emscripten, but just in case, I'll ask:
>>>
>>> With this simple code:
>>>
>>> unsigned int count = 80;
>>> hb_tag_t myResult[count];
>>> hb_ot_layout_table_get_feature_tags(hb_font_get_face(hb_font),
>>> HB_OT_TAG_GSUB, 0, &count, myResult);
>>>
>>> ...I'm getting exactly 11 copies of every tag inside the myResult array
>>> (so positions 0-10 contain "aalt", positions 11-21 contain "c2sc", etc).
>>>
>>> Is this expected, a bug (I'm using 1.0.6) or am I doing something
>>> glaringly wrong there?
>>>
>>> Thanks, and sorry for the annoying questions :)
>>>
>>>
>> And if you know what you're looking for specifically, you case use
>> hb_ot_layout_language_get_feature_tags().
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20151119/b684be40/attachment-0001.html>
More information about the HarfBuzz
mailing list