mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[instancer-solver] Backport bugfix from fonttools
Fixes https://github.com/harfbuzz/harfbuzz/issues/4289 Test not ported yet.
This commit is contained in:
parent
a77f282865
commit
de0c5aed5b
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ _solve (Triple tent, Triple axisLimit, bool negative = false)
|
|||
if (gain > outGain)
|
||||
{
|
||||
// Crossing point on the axis.
|
||||
float crossing = peak + ((1 - gain) * (upper - peak) / (1 - outGain));
|
||||
float crossing = peak + (1 - gain) * (upper - peak);
|
||||
|
||||
Triple loc{axisDef, peak, crossing};
|
||||
float scalar = 1.f;
|
||||
|
|
Loading…
Add table
Reference in a new issue