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))
|
if (ot_face->glyf->get_extents (font, glyph, &extents))
|
||||||
{
|
{
|
||||||
const OT::vmtx_accelerator_t &vmtx = *ot_face->vmtx;
|
const OT::vmtx_accelerator_t &vmtx = *ot_face->vmtx;
|
||||||
hb_position_t tsb = vmtx.has_data ()?
|
hb_position_t tsb = vmtx.get_side_bearing (font, glyph);
|
||||||
vmtx.get_side_bearing (font, glyph):
|
|
||||||
((extents.height - font->get_glyph_v_advance (glyph)) / 2);
|
|
||||||
*y = font->em_scale_y (extents.y_bearing + tsb);
|
*y = font->em_scale_y (extents.y_bearing + tsb);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue