Skip to content

italicAngle with anisotropic interpolations #329

@typemytype

Description

@typemytype

The big picture:

from fontMath import MathInfo
from defcon import Info

i1 = Info()
i1.italicAngle = 0
i2 = Info()
i2.italicAngle = 0

mi1 = MathInfo(i1)
mi2 = MathInfo(i2)

r = mi1 + (mi2 - mi1) * (-0.21, -0.386)

print(r.italicAngle)

This prints out -180.0 as a interpolation result for the italicAngle.

Narrowed down to the factorAngle function:

from fontMath.mathFunctions import factorAngle
from fontMath.mathFunctions import mul

r = factorAngle(0, (-0.21, -0.21), mul)
print(r)

I have no solution, factorAngle divides the angle to sin/cos mimicking x/y and applies the anisotropic factor, which makes sense, only the result is not as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions