[ot-font] Use var vmtx side bearing in calculating v-origin

This commit is contained in:
Ebrahim Byagowi 2019-10-03 14:27:51 +03:30
parent 3fd555be54
commit 79ec65ae10
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}