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

In the Python module: Attempting to open font with FSType 2 (Restricted License) fails with nonspecific "OSError: Open failed" #5394

Open
WinkelCode opened this issue Apr 1, 2024 · 0 comments

Comments

@WinkelCode
Copy link

WinkelCode commented Apr 1, 2024

I was trying to automate something with FontForge, but kept running running into:

The PostScript font name "[REDACTED]" is invalid.
It should be printable ASCII,
must not contain (){}[]<>%/ or space
and must be shorter than 63 characters
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: Open failed

It took me way too long to figure out that the issue was the restricted license flag, rather than the invalid PostScript font name.

It would be very useful if this error reason was disclosed in some way in the error message.

Edit: For future context: I am using the GitHub Actions build of this commit: 9964090 (latest as of posting)

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