Skip to content

Guidelin.locked is saved as number not boolean #147

Description

@khaledhosny

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions