Skip to content

Fix Filter parsing #366

@moyogo

Description

@moyogo

As mentioned in googlefonts/ufo2ft#238:
We need to change the way filter strings are parsed in glyphLib. Width:+30, which should add 30 to the width, doesn’t mean the same asWidth:30 or Width:=30 or Width:=+30, which should set the width to 30.

Width:-30 should substract 30 from the width, while Width:=-30 should set to the width to 0 since width cannot be negative (RSB:=-30 and LSB:=-30 do set RSB and LSB to -30).

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