mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
[avar2] Clamp out values
This commit is contained in:
1 parent
d0e2ad9297
commit
d6c4f757a4
1 file changed
+1
-1
@@ -195,7 +195,7 @@ struct avar
|
||||
uint32_t varidx = varidx_map.map (i);
|
||||
float delta = var_store.get_delta (varidx, coords, coords_length);
|
||||
v += round (delta);
|
||||
/* TODO Clamp v? */
|
||||
v = hb_clamp (v, -(1<<14), +(1<<14));
|
||||
out.push (v);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user