[instancer/varstore] Micro-optimize

This commit is contained in:
Behdad Esfahbod committed 2025-09-12 03:13:25 -06:00
1 parent 14e7d5b2c8
commit 92ec75f8d6
1 file changed
+1 -1
+1 -1
View File
@@ -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