From ab360899241575fcd0a57a433c5fcd2f5f802ba0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 10 Oct 2024 14:46:27 -0600 Subject: [PATCH] [CFF] Increase max op num limit This actually counts operands too, not just operators. In a big variable-font design-space, each blend can easily take a dozen ops or more. I was sent a font for which this limit was hit. Increase by 20x for now. --- src/hb-limits.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-limits.hh b/src/hb-limits.hh index 2cb14a4cc..fbc7bbe76 100644 --- a/src/hb-limits.hh +++ b/src/hb-limits.hh @@ -101,7 +101,7 @@ #endif #ifndef HB_CFF_MAX_OPS -#define HB_CFF_MAX_OPS 10000 +#define HB_CFF_MAX_OPS 200000 #endif #ifndef HB_MAX_COMPOSITE_OPERATIONS_PER_GLYPH