[VARC] Tweak cache use

This commit is contained in:
Behdad Esfahbod committed 2024-04-16 17:10:46 -06:00
1 parent a7fd55569e
commit db06c673f3
1 file changed
+5 -2
+5 -2
View File
@@ -128,9 +128,12 @@ struct VARC
return true;
visited->add (glyph);
VarRegionList::cache_t *cache = (this+varStore).create_cache ();
hb_ubytes_t record = (this+glyphRecords)[idx];
VarRegionList::cache_t *cache = record.length >= 64 ? // Heuristic
(this+varStore).create_cache ()
: nullptr;
VarCompositeGlyph::get_path_at (font, glyph,
draw_session, coords,
record,