[HarfBuzz] Kerning, glyph width, and x advance

Nikolay Sivov bunglehead at gmail.com
Fri Sep 4 00:32:03 PDT 2015


On 04.09.2015 9:56, Simon Cozens wrote:
> On 04/09/2015 15:50, Behdad Esfahbod wrote:
>> You need the advance width, and you can get that using
>> hb_font_get_glyph_h_advance().
>
> Aha! And the kerned adjustment is the difference between the glyph's h
> advance and the shaped x_advance... Yes, that seems to work. Thank you!

I think it's only true if kerning is the only advance adjustment that 
shaper applied, and you can only guess if it's true or not. So this 
difference is more like accumulated adjustment, not necessary caused by 
kerning.

>
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
>



More information about the HarfBuzz mailing list