From 79ec65ae10f959aeddaa1e39eba5226c604a8c87 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Thu, 3 Oct 2019 14:27:51 +0330 Subject: [PATCH] [ot-font] Use var vmtx side bearing in calculating v-origin --- src/hb-ot-font.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-font.cc b/src/hb-ot-font.cc index e6288b445..78ff6d294 100644 --- a/src/hb-ot-font.cc +++ b/src/hb-ot-font.cc @@ -163,7 +163,7 @@ hb_ot_get_glyph_v_origin (hb_font_t *font, if (ot_face->glyf->get_extents (glyph, &extents)) { const OT::vmtx_accelerator_t &vmtx = *ot_face->vmtx; - hb_position_t tsb = vmtx.get_side_bearing (glyph); + hb_position_t tsb = vmtx.get_side_bearing (font, glyph); *y = font->em_scale_y (extents.y_bearing + tsb); return true; }