Skip to content

postscriptBlueValues validation for list is always failing #426

@santhoshtr

Description

@santhoshtr

The argument for fontInfoPostscriptBluesValidator in validator.py is recieving a value like ([-12, 12, 525, 549, 756, 780],) which always has length 1 and rule to validate the length as multiple of 2 always fails

A sample stack trace is given. I am setting a list of 6 values to self.info.postscriptBlueValues

    self.info.postscriptBlueValues= [-12, 12, int(self.info.xHeight-12), int(self.info.xHeight+12), int(self.info.ascender-12), int(self.info.ascender+12)],
  File "/home/santhosh/work/fonts/Malini/.venv/lib/python3.10/site-packages/defcon/objects/info.py", line 38, in setter
    raise ValueError("Invalid value ({0}) for attribute {1}.".format(repr(value), name))
ValueError: Invalid value (([-12, 12, 525, 549, 756, 780],)) for attribute postscriptBlueValues.
make: *** [Makefile:47: sources/ufo/Malini-Regular.ufo] Error 1   

I assume I setting the values correctly. If not please let me know. Thanks

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