<div dir="ltr">It worked, as expected :).<div><br></div><div>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:</div><div><br></div><div>With this simple code:</div><div><br></div><div><div>unsigned int count = 80;</div><div>hb_tag_t myResult[count];</div><div>hb_ot_layout_table_get_feature_tags(hb_font_get_face(hb_font), HB_OT_TAG_GSUB, 0, &count, myResult);</div></div><div><br></div><div>...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).</div><div><br></div><div>Is this expected, a bug (I'm using 1.0.6) or am I doing something glaringly wrong there?</div><div><br></div><div>Thanks, and sorry for the annoying questions :)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 19, 2015 at 7:13 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"><p dir="ltr">Thank you both, that's very helpful!</p>
<p dir="ltr">I'll give it a try later, and maybe open a PR to add doc to them (the lack of docs is a bit problematic for a project this complex)</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Nov 18, 2015 11:43 PM, "Adam Twardoch (List)" <<a href="mailto:list.adam@twardoch.com" target="_blank">list.adam@twardoch.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On 18 Nov 2015, at 13:40, Nikolay Sivov <<a href="mailto:bunglehead@gmail.com" target="_blank">bunglehead@gmail.com</a>> wrote:<br>
><br>
> On 18.11.2015 15:27, Edu García wrote:<br>
>> Thank you!<br>
>><br>
>> That's the one I suspected. However, as its second parameter, it wants a<br>
>> "hb_tag_t table_tag". What is that table tag, and how do I get it?<br>
><br>
> There's only two possible tags you can use in this case - HB_OT_TAG_GSUB and HB_OT_TAG_GPOS.<br>
<br>
Yes, giving HB_OT_TAG_GSUB will get you the list of substitution features in the font and HB_OT_TAG_GPOS will give you the list of positioning features. GSUB features are always applied before GPOS features. It's possible that the same feature is defined in both tables, then the GSUB portion of the feature will be applied first, GPOS later.<br>
<br>
A.<br>
<br>
</blockquote></div>
</div></div></blockquote></div><br></div>