<div dir="ltr">I don't know what font data our "kerning only" implementation is using under the hood, but the kerning used when calculating the advance is from a call to <font face="monospace, monospace">FT_Get_Kerning</font> with the <font face="monospace, monospace">FT_KERNING_DEFAULT</font> flag. We only do this when <font face="monospace, monospace">FT_HAS_KERNING</font> reports that the font has kerning data, and the remainder of the advance comes from the <font face="monospace, monospace">advance.x</font> value on the <font face="monospace, monospace">FT_GlyphSlot</font> for the glyph, such that:<div><br><div><font face="monospace, monospace">TotalAdvance = Kerning + GlyphSlotAdvanceX;</font></div><div><br></div><div>-Jamie.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 October 2015 at 20:49, 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 class="">On 05.10.2015 22:32, Jamie Dale wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The images below are using the Roboto font, and show the output from<br>
each implementation.<br>
The top image is using our "kerning only" implementation, and the bottom<br>
image is using HarfBuzz. Note that the "T" and "e" characters are<br>
further apart in the bottom image.<br>
</blockquote>
<br></span>
Roboto-Regular.ttf from <a href="https://github.com/google/roboto" rel="noreferrer" target="_blank">https://github.com/google/roboto</a> doesn't have 'kern' table, so the only way to enable kerning for it is to use GPOS kern feature.<br>
<br>
What does your "kerning only" implementation do? It only applies this GPOS feature skipping the rest of shaping/positioning stuff?<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
HarfBuzz mailing list<br>
<a href="mailto:HarfBuzz@lists.freedesktop.org" target="_blank">HarfBuzz@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/harfbuzz" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/harfbuzz</a><br>
</div></div></blockquote></div><br></div>