[instancer-solver] Backport bugfix from fonttools

Fixes https://github.com/harfbuzz/harfbuzz/issues/4289

Test not ported yet.
This commit is contained in:
Behdad Esfahbod 2023-06-21 15:14:23 -06:00
parent a77f282865
commit de0c5aed5b

View file

@ -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;