robotools / fontParts

The replacement for RoboFab
MIT License
133 stars 44 forks source link

guideline.position normalization problem #650

Open typesupply opened 2 years ago

typesupply commented 2 years ago

I think this is because _set_position uses moveBy to move the coordinates. moveBy calls transformBy which calls _transformBy. The guideline implementation of _transformBy doesn't normalize the resulting coordinates.

Demo:

from fontParts.fontshell import RGuideline

guideline = RGuideline()
guideline.position = (1, 2)
print(guideline.position)