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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/harfbuzz
_______________________________________________
HarfBuzz mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/harfbuzz