From 758ee5cff96a3f8d7115eac1bccf19133f11ef70 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 18 Feb 2025 20:39:22 -0700 Subject: [PATCH] [COLR] Regain speed if all (normalized) coords are 0 --- src/OT/Color/COLR/COLR.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OT/Color/COLR/COLR.hh b/src/OT/Color/COLR/COLR.hh index b7e1be0d3..36ae43e31 100644 --- a/src/OT/Color/COLR/COLR.hh +++ b/src/OT/Color/COLR/COLR.hh @@ -2587,7 +2587,8 @@ struct COLR { ItemVarStoreInstancer instancer (get_var_store_ptr (), get_delta_set_index_map_ptr (), - hb_array (font->coords, font->num_coords)); + hb_array (font->coords, + font->has_nonzero_coords ? font->num_coords : 0)); hb_paint_context_t c (this, funcs, data, font, palette_index, foreground, instancer); hb_decycler_node_t node (c.glyphs_decycler);