From 92ec75f8d65ec112e210e587494a18fb705d95ce Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 12 Sep 2025 03:13:25 -0600 Subject: [PATCH] [instancer/varstore] Micro-optimize --- src/hb-ot-var-common.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-var-common.hh b/src/hb-ot-var-common.hh index 9e974c291..71a6bc21b 100644 --- a/src/hb-ot-var-common.hh +++ b/src/hb-ot-var-common.hh @@ -1936,7 +1936,7 @@ struct item_variations_t const delta_row_encoding_t& obj = encoding_objs.arrayZ[idx]; // In the unlikely event that the same encoding exists already, combine it. - if (obj.chars == combined_encoding_obj.chars) + if (obj.width == combined_encoding_obj.width && obj.chars == combined_encoding_obj.chars) { // This is straight port from fonttools algorithm. I added this branch there // because I thought it can happen. But looks like we never get in here in