mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 23:41:03 +01:00
[gvar] Comment
This commit is contained in:
1 parent
ef8c25ad9f
commit
d3e4977c70
1 file changed
+3
-3
@@ -590,9 +590,9 @@ struct gvar_GVAR
|
||||
/* If sanitize failed, set glyphCount to 0. */
|
||||
glyphCount = table->version.to_int () ? face->get_num_glyphs () : 0;
|
||||
|
||||
/* For shared tuples that only have one axis active, shared the index of
|
||||
* that axis as a cache. This will speed up caclulate_scalar() a lot
|
||||
* for fonts with lots of axes and many "monovar" tuples. */
|
||||
/* For shared tuples that only have one or two axes active, shared the index
|
||||
* of that axis as a cache. This will speed up caclulate_scalar() a lot
|
||||
* for fonts with lots of axes and many "monovar" or "duovar" tuples. */
|
||||
hb_array_t<const F2DOT14> shared_tuples = (table+table->sharedTuples).as_array (table->sharedTupleCount * table->axisCount);
|
||||
unsigned count = table->sharedTupleCount;
|
||||
if (unlikely (!shared_tuple_active_idx.resize (count, false))) return;
|
||||
|
||||
Reference in new issue
Block a user