[ot] Make v_origin work for more glyph formats

This commit is contained in:
Behdad Esfahbod 2025-03-28 14:12:28 -06:00
parent 1358e38154
commit c39ac0e171

View file

@ -363,7 +363,8 @@ hb_ot_get_glyph_v_origin (hb_font_t *font,
}
hb_glyph_extents_t extents = {0};
if (ot_face->glyf->get_extents (font, glyph, &extents))
if (hb_font_get_glyph_extents (font, glyph, &extents))
{
const OT::vmtx_accelerator_t &vmtx = *ot_face->vmtx;
int tsb = 0;