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

Software failed when dealing with 'space' glyph in Hack #5

Open
NightFurySL2001 opened this issue Nov 13, 2020 · 0 comments
Open

Software failed when dealing with 'space' glyph in Hack #5

NightFurySL2001 opened this issue Nov 13, 2020 · 0 comments

Comments

@NightFurySL2001
Copy link

NightFurySL2001 commented Nov 13, 2020

I am converting Hack font from 2048 UPM to 1000 UPM. The following error is given when parsing otrebuild.exe --UPM 1000 --O3 -o Hack1000-Regular.ttf .\Hack-Regular.ttf:

Input Font: .\Hack-Regular.ttf
Processing...
Traceback (most recent call last):
  File "otRebuilder\otrebuild.py", line 395, in <module>
  File "otRebuilder\otrebuild.py", line 102, in main
  File "otRebuilder\otrebuild.py", line 276, in processFont
  File "otRebuilder\otrebuild.py", line 310, in doJobs
  File "otRebuilder\otrebuild.py", line 346, in doFixes
  File "otRebuilder\Lib\Fixer.py", line 87, in fixOS2f2
  File "otRebuilder\Lib\Workers.py", line 50, in recalcXAvgCharWidth
KeyError: 'space'
Failed to execute script otrebuild

I determined the problem to stem from --recalculate, which when disabled will parse the font flawlessly.

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