[VARC] More nuanced caching

This commit is contained in:
Behdad Esfahbod 2025-02-24 20:40:26 -07:00
parent 74bb7c52f3
commit 6938ee0342

View file

@ -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);