From c39ac0e17117a84fd6c6ff967f67dde4f188b4d8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 28 Mar 2025 14:12:28 -0600 Subject: [PATCH] [ot] Make v_origin work for more glyph formats --- src/hb-ot-font.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hb-ot-font.cc b/src/hb-ot-font.cc index 753b66e3f..8051b8628 100644 --- a/src/hb-ot-font.cc +++ b/src/hb-ot-font.cc @@ -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;