mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 01:00:37 +00:00
[VarC] Clamp after addition
This commit is contained in:
parent
80a5011eb6
commit
6bb478eeeb
1 changed files with 2 additions and 1 deletions
|
@ -248,8 +248,9 @@ struct VarCompositeGlyphRecord
|
|||
{
|
||||
unsigned axis_index = axis_width == 1 ? *p++ : *q++;
|
||||
signed v = axis_points[i].x;
|
||||
v += setter[axis_index];
|
||||
v = hb_clamp (v, -(1<<14), (1<<14));
|
||||
setter[axis_index] += v;
|
||||
setter[axis_index] = v;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue