[LigatureSet] Use slow path only if <= 1 ligatures (#5462)

This commit is contained in:
Behdad Esfahbod authored and GitHub committed 2025-08-14 16:23:45 -06:00
1 parent bbc2e0d0b5
commit cf614fc85d
1 file changed
+1 -1
+1 -1
View File
@@ -79,7 +79,7 @@ struct LigatureSet
unsigned int num_ligs = ligature.len;
#ifndef HB_NO_OT_RULESETS_FAST_PATH
if (HB_OPTIMIZE_SIZE_VAL || num_ligs <= 4)
if (HB_OPTIMIZE_SIZE_VAL || num_ligs <= 1)
#endif
{
slow: