-
Notifications
You must be signed in to change notification settings - Fork 475
[varLib/glyf] Rework phantom-points calculations #2266
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
Conversation
I suggested Cosimo add that code in #1528 Upon further inspection now, that code is unnecessary and even wrong in cases where different masters have different ascent, because that would result in encoding variations for vertical phantom points, which will be then either be unused or double-apply on top of ascent etc.
To reduce calling TTFont.__getitem__ many times per glyph!
Calls to |
And following timing goes from 5s to 4.6s:
|
And now down to just 170. This is ready for review now. |
Also simplify bounds check.
…ints Will add old name with old API next.
0206cf8
to
b65e83a
Compare
b65e83a
to
a43690e
Compare
Okay. Thanks everyone. I put back the old names. Didn't quite deprecate them. Am not sure where to go from here. I think these were added as public API a bit hastily. We can deprecate and remove, while we figure out what to expose as public API now. |
I think this can be merged if we open a tracker issue for the deprecation / new API part. |
Co-authored-by: Nikolaus Waxweiler <madigens@gmail.com>
No description provided.