mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[VARC] More nuanced caching
This commit is contained in:
parent
74bb7c52f3
commit
6938ee0342
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue