In fontra/src/fontra/core/classes.py Guideline.locked is type is bool, but in:
|
def gsGuidelineToFontraGuideline(gsGuideline): |
|
return Guideline( |
|
x=gsGuideline.position.x, |
|
y=gsGuideline.position.y, |
|
angle=gsGuideline.angle, |
|
name=gsGuideline.name, |
|
locked=gsGuideline.locked, |
|
) |
The Glyphs value is used directly and it is a number not boolean. This apparently not an issue in the Python and JavaScript backends, but while working on the Rust backend for fontc this became an issue. I can work around it, but it would be nice if the type was corrected in classes.py or the code here forced it to be boolean.
In fontra/src/fontra/core/classes.py Guideline.locked is type is
bool, but in:fontra-glyphs/src/fontra_glyphs/backend.py
Lines 1410 to 1417 in e7024bc
The Glyphs value is used directly and it is a number not boolean. This apparently not an issue in the Python and JavaScript backends, but while working on the Rust backend for fontc this became an issue. I can work around it, but it would be nice if the type was corrected in classes.py or the code here forced it to be boolean.