-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fails to parse TTF file -> "Error while parsing file: requested 1 bytes, but only 0 bytes available" #8
Comments
Thanks for reporting this! I tried a few
From a quick look, both of these errors seem related to the way the core Kaitai library itself handles the files. I'll double check this again later this week. For what it's worth, I was able to bypass the errors by applying the following patch:
Thanks! |
Thanks for a quick turnaround!
I've had those too. Have you pushed the update to the python repo, so I could upgrade it with pip --upgrade? |
Ideally I'd like to make sure that we fix all known TTF parsing issues before releasing a new official release. git clone https://github.com/Dvd848/pytai.git pytai_test && cd pytai_test/
sed -i -e 's/decode(u"\([^"]*\)")/decode(u"\1", errors="ignore")/g' pytai/kaitai/formats/ttf.py
python3 __main__.py /path/to/your/font.ttf -kf ttf Be sure to replace |
Now, seems to be working fine. Thanks a lot for your effort! |
Thanks for your feedback!
I'll hopefully be able to release a new official version to PyPI some time later this week. |
Released v0.2.8 with the workaround. |
No description provided.
The text was updated successfully, but these errors were encountered: