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

[beztools.py] Traceback in convertBezToT2(bezData) from afdko/python/afdko/beztools.py #629

Closed
llsmrsll opened this issue Sep 28, 2018 · 2 comments
Assignees
Labels

Comments

@llsmrsll
Copy link

If I use autohint, I get an error in case of some glyphs.
It also occurs in the latest(2.8.3a0) autohint.
In convertBezToT2, when entering if numHHints> = hintLimit:, the type of hintLimit becomes float and problems arise.
Please, can you look at this part?

@miguelsousa
Copy link
Member

Please provide a test font. It just needs to contain the glyphs that cause the problem.

llsmrsll added a commit to llsmrsll/samplefile that referenced this issue Oct 2, 2018
@llsmrsll
Copy link
Author

llsmrsll commented Oct 2, 2018

I have made a test font that causes this problem.
https://github.com/llsmrsll/samplefile/blob/master/autohintError__afdko__issue629.otf

Please execute auto hint on font and make sure TypeError occurs in glyph with CFF ID cid00002.

$ autohint -r -o ./output.otf ./autohintError__afdko__issue629.otf

This problem occurs in Python 3.

hintLimit = (kStackLimit-2)/2

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

No branches or pull requests

2 participants