From 1cc844da66ab527991ff96efdf10d97f6b626bfe Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Wed, 14 Aug 2019 19:10:02 +0430 Subject: [PATCH] minor Use hb_font_t coords directly --- src/hb-ot-cff2-table.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hb-ot-cff2-table.cc b/src/hb-ot-cff2-table.cc index 33b51fea4..0251efac8 100644 --- a/src/hb-ot-cff2-table.cc +++ b/src/hb-ot-cff2-table.cc @@ -110,12 +110,10 @@ bool OT::cff2::accelerator_t::get_extents (hb_font_t *font, if (unlikely (!is_valid () || (glyph >= num_glyphs))) return false; - unsigned int num_coords; - const int *coords = hb_font_get_var_coords_normalized (font, &num_coords); unsigned int fd = fdSelect->get_fd (glyph); cff2_cs_interpreter_t interp; const byte_str_t str = (*charStrings)[glyph]; - interp.env.init (str, *this, fd, coords, num_coords); + interp.env.init (str, *this, fd, font->coords, font->num_coords); cff2_extents_param_t param; param.init (); if (unlikely (!interp.interpret (param))) return false;