Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postscriptBlueValues validation for list is always failing #426

Open
santhoshtr opened this issue Dec 8, 2022 · 0 comments
Open

postscriptBlueValues validation for list is always failing #426

santhoshtr opened this issue Dec 8, 2022 · 0 comments

Comments

@santhoshtr
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant