From 307a19f2c2a3136a834fff0d2dd8b1c58cdcac7a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 20 Jul 2025 00:32:45 -0600 Subject: [PATCH] [glyf] Minor micro-optimize --- src/OT/glyf/glyf.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OT/glyf/glyf.hh b/src/OT/glyf/glyf.hh index 288c26a16..b821dd322 100644 --- a/src/OT/glyf/glyf.hh +++ b/src/OT/glyf/glyf.hh @@ -386,7 +386,8 @@ struct glyf_accelerator_t contour_point_t phantoms[glyf_impl::PHANTOM_COUNT]; success = get_points (font, gid, points_aggregator_t (font, nullptr, phantoms, false), - hb_array (font->coords, font->num_coords), + hb_array (font->coords, + font->has_nonzero_coords ? font->num_coords : 0), scratch, gvar_cache); if (unlikely (!success)) {