Function
GSAngleToSlope(_:_:_:) GSAngleToSlope GSAngleToSlope
convert and angle (CCV from 12 o’clock) to run/rise as stored in the hhea table
Declaration
func GSAngleToSlope(
_ angle: CGFloat,
_ run: UnsafeMutablePointer<Int32>,
_ rise: UnsafeMutablePointer<Int32>
) -> BoolDeclaration
BOOL GSAngleToSlope(
CGFloat angle,
int *run,
int *rise
);Declaration
GSAngleToSlope(
angle: float,
run: int,
rise: int
) -> boolSee Also
Numeric Conversion and Rotation
The angle of run/rise. This can be used to write the italic angle so the angle is positive CCV from 12 o’clock