[instancer-solver] Backport bugfix from fonttools

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

Test not ported yet.
pull/4292/head
Behdad Esfahbod 1 year ago
parent a77f282865
commit de0c5aed5b
  1. 2
      src/hb-subset-instancer-solver.cc

@ -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…
Cancel
Save