<div dir="ltr">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) :)</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 19, 2015 at 9:47 AM, Edu García <span dir="ltr"><<a href="mailto:arcnorj@gmail.com" target="_blank">arcnorj@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div><br></div><div>In any case, I'll read that blogpost, maybe I'm not getting the full extent of what you mean :).</div><div><br></div><div>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 :).</div><div><br></div><div>Thanks again!</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 19, 2015 at 9:43 AM, Nikolay Sivov <span dir="ltr"><<a href="mailto:bunglehead@gmail.com" target="_blank">bunglehead@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 19.11.2015 0:45, Edu García wrote:<br>
</span><span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It worked, as expected :).<br>
<br>
However, I'm getting some curious results, and I'm not sure if it's<br>
because of my C rustiness or the fact that I'm running Harfbuzz with<br>
Emscripten, but just in case, I'll ask:<br>
<br>
With this simple code:<br>
<br>
unsigned int count = 80;<br>
hb_tag_t myResult[count];<br>
hb_ot_layout_table_get_feature_tags(hb_font_get_face(hb_font),<br>
HB_OT_TAG_GSUB, 0, &count, myResult);<br>
<br>
...I'm getting exactly 11 copies of every tag inside the myResult array<br>
(so positions 0-10 contain "aalt", positions 11-21 contain "c2sc", etc).<br>
<br>
Is this expected, a bug (I'm using 1.0.6) or am I doing something<br>
glaringly wrong there?<br>
<br>
Thanks, and sorry for the annoying questions :)<br>
<br>
</blockquote>
<br></span>
And if you know what you're looking for specifically, you case use hb_ot_layout_language_get_feature_tags().<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>