[HarfBuzz] No kerning?
Jamie Dale
jamiedale88+harfbuzz at gmail.com
Mon Oct 5 13:17:59 PDT 2015
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 FT_Get_Kerning with the FT_KERNING_DEFAULT flag. We only do this
when FT_HAS_KERNING reports that the font has kerning data, and the
remainder of the advance comes from the advance.x value on the FT_GlyphSlot
for the glyph, such that:
TotalAdvance = Kerning + GlyphSlotAdvanceX;
-Jamie.
On 5 October 2015 at 20:49, Nikolay Sivov <bunglehead at gmail.com> wrote:
> On 05.10.2015 22:32, Jamie Dale wrote:
>
>>
>> The images below are using the Roboto font, and show the output from
>> each implementation.
>> The top image is using our "kerning only" implementation, and the bottom
>> image is using HarfBuzz. Note that the "T" and "e" characters are
>> further apart in the bottom image.
>>
>
> Roboto-Regular.ttf from https://github.com/google/roboto doesn't have
> 'kern' table, so the only way to enable kerning for it is to use GPOS kern
> feature.
>
> What does your "kerning only" implementation do? It only applies this GPOS
> feature skipping the rest of shaping/positioning stuff?
>
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/harfbuzz/attachments/20151005/148b15f8/attachment-0001.html>
More information about the HarfBuzz
mailing list