undo hb_ot_ge_glyph_v_origin to fix test failures

This commit is contained in:
Michiharu Ariza 2019-04-11 09:59:13 -07:00
parent 9e79285ef3
commit e814083202
1 changed files with 1 additions and 3 deletions

View File

@ -161,9 +161,7 @@ hb_ot_get_glyph_v_origin (hb_font_t *font,
if (ot_face->glyf->get_extents (font, glyph, &extents))
{
const OT::vmtx_accelerator_t &vmtx = *ot_face->vmtx;
hb_position_t tsb = vmtx.has_data ()?
vmtx.get_side_bearing (font, glyph):
((extents.height - font->get_glyph_v_advance (glyph)) / 2);
hb_position_t tsb = vmtx.get_side_bearing (font, glyph);
*y = font->em_scale_y (extents.y_bearing + tsb);
return true;
}