mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 09:09:13 +01:00
[instancer-solver] Backport bugfix from fonttools
Fixes https://github.com/harfbuzz/harfbuzz/issues/4289 Test not ported yet.
This commit is contained in:
1 parent
a77f282865
commit
de0c5aed5b
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user