mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[VARC] Tweak cache use
This commit is contained in:
1 parent
a7fd55569e
commit
db06c673f3
1 file changed
+5
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user