alexeiva/alexei-scripts

Slant Rounds: sure about dividing degree angle by 100?

mekkablue opened this issue · 1 comments

Or did you mean something like this:

First at the top, add:

from math import radians

Then in process(), replace the myX/Y assignments with this:

	myY =  radians(thisMasterAngle)
	myX = -radians(thisMasterAngle)

And this change to the shear matrix:

	thisLayer.applyTransform([1, myX/2, myY, 1, 0, 0])

Or what exactly is Jacques’ method, spelled out in words?

Thank you for the suggestion. /100 was simply my closest guess. Radians is exactly what I was looking for, as it produces a mathematically natural result, and is identical to the slant in Glyphs.

Given Italic angle is 10:
old transform: applyTransform([1, -0.100000, 0.200000, 1, 0, 0])
new transform: applyTransform([1, -0.087266, 0.174533, 1, 0, 0]) radians(thisMasterAngle)

Or what exactly is Jacques’ method, spelled out in words?

Jacques @Fonthausen mentioned a skew with *0.5 compensation.
vSkew = 0.5 * i | hSkew = i , where i = Italic Angle
screen shot 2018-02-26 at 2 56 04 pm

I tried an alternative method, it produces similar results:
vSkew = i | hSkew = i + 2
screen shot 2018-02-26 at 2 56 07 pm