[ot-font] Use var vmtx side bearing in calculating v-origin
This commit is contained in:
parent
3fd555be54
commit
79ec65ae10
|
@ -163,7 +163,7 @@ hb_ot_get_glyph_v_origin (hb_font_t *font,
|
|||
if (ot_face->glyf->get_extents (glyph, &extents))
|
||||
{
|
||||
const OT::vmtx_accelerator_t &vmtx = *ot_face->vmtx;
|
||||
hb_position_t tsb = vmtx.get_side_bearing (glyph);
|
||||
hb_position_t tsb = vmtx.get_side_bearing (font, glyph);
|
||||
*y = font->em_scale_y (extents.y_bearing + tsb);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue