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

use otRound everywhere else it makes sense #263

Merged
merged 1 commit into from
Jun 19, 2018

Conversation

anthrotype
Copy link
Member

follow up from #262, so that we match the new fonttools 3.28 rounding behavior for all visual coordinates, advances or deltas.

this is to match the new fonttools 3.28 rounding behavior for
visual coordinates, advances or deltas
@anthrotype
Copy link
Member Author

basically the only place left where we still use the built-in (python3's) round is this

head.fontRevision = round(fullFontRevision, 3)

this is just an abstract number (i.e. not "visual"), and it needs the second argument, whereas otRound function only takes one argument v and does int(math.floor(v + .5)).

@anthrotype anthrotype merged commit 015f1b0 into googlefonts:master Jun 19, 2018
@anthrotype anthrotype deleted the use-ft-otRound branch June 19, 2018 18:20
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

Successfully merging this pull request may close these issues.

1 participant