From 21346af01d4222cdf50478fd4ad8b445d5e2f62e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 7 Jun 2022 14:41:39 -0600 Subject: [PATCH] [layout-cache] Adjust cost-function for recent change --- src/hb-ot-layout-gsubgpos.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index f2147d32a..adfec335f 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -3296,7 +3296,7 @@ struct ChainContextFormat2 unsigned cache_cost () const { - unsigned c = (this+inputClassDef).cost () * ruleSet.len; + unsigned c = (this+lookaheadClassDef).cost () * ruleSet.len; return c >= 4 ? c : 0; } bool cache_func (hb_ot_apply_context_t *c, bool enter) const