From 6938ee0342f03b97068bd5d2950d6b179f9710c8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 24 Feb 2025 20:40:26 -0700 Subject: [PATCH] [VARC] More nuanced caching --- src/OT/Var/VARC/VARC.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/OT/Var/VARC/VARC.cc b/src/OT/Var/VARC/VARC.cc index 4363bc037..a474054fd 100644 --- a/src/OT/Var/VARC/VARC.cc +++ b/src/OT/Var/VARC/VARC.cc @@ -381,9 +381,7 @@ VARC::get_path_at (hb_font_t *font, hb_ubytes_t record = (this+glyphRecords)[idx]; - VarRegionList::cache_t *cache = record.length >= 64 ? // Heuristic - (this+varStore).create_cache () - : nullptr; + VarRegionList::cache_t *cache = coords ? (this+varStore).create_cache () : nullptr; transform.scale (font->x_multf, font->y_multf);