mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-07 06:25:03 +00:00
[instancer] reference all points for gvar
If a point is not referenced and delta is not inferred, set delta to 0
This commit is contained in:
parent
0aa5dafefd
commit
bea26446d2
3 changed files with 14 additions and 2 deletions
|
@ -993,8 +993,20 @@ struct tuple_delta_t
|
|||
start_point = end_point + 1;
|
||||
}
|
||||
|
||||
for (unsigned i : inferred_idxes)
|
||||
indices[i] = true;
|
||||
for (unsigned i = 0; i < point_count; i++)
|
||||
{
|
||||
/* if points are not referenced and deltas are not inferred, set to 0.
|
||||
* reference all points for gvar */
|
||||
if ( !indices[i])
|
||||
{
|
||||
if (!inferred_idxes.has (i))
|
||||
{
|
||||
deltas_x.arrayZ[i] = 0.f;
|
||||
deltas_y.arrayZ[i] = 0.f;
|
||||
}
|
||||
indices[i] = true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue