knutnergaard / smufolib

FontParts based library for SMuFL font scripting.
MIT License
7 stars 0 forks source link

import-anchors script applies wrong values? #1

Open benwiggy opened 3 hours ago

benwiggy commented 3 hours ago

The import-anchors script imports the anchors to the wrong position. I'm guessing that the co-ordinates from the JSON file are not multiplied by 250 (converting between 'spaces' and "font units").

They all go to 0,0 or 1,0.

Screenshot
benwiggy commented 3 hours ago

I added a rather crude:

                position[0]*=250
                position[1]*=250

at line 119, and it works perfectly.

Screenshot
knutnergaard commented 2 hours ago

@benwiggy As your own efforts suggest, this is a bug that will be corrected in the next update.

Thank you!