undo hb_ot_ge_glyph_v_origin to fix test failures
This commit is contained in:
parent
9e79285ef3
commit
e814083202
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue