[varLib.mutator] How well do static instances made by mutator match how other engines do it?
See original GitHub issueI noticed Python 3ās round()
functions rounds values ending in .5
up or down, depending on whether the base number is even or odd. The rounded result of such numbers is always even. This affects how the GlyphCoordinates.asInt()
works, which (as far as I can see) is responsible for rounding after instance interpolation.
I can imagine that other engines (FreeType, Appleās, MSās) may behave differently.
The even/odd rounding is causing me pain trying to match some existing metrics with phantom point deltas in gvar ā in many cases itās just impossible to adjust for an odd advance width value.
But then again, maybe mutator is not the right reference for this. And maybe this is not a solvable issue, maybe Iām trying to do something impossible.
Any thoughts?
Issue Analytics
- State:
- Created 5 years ago
- Comments:30 (17 by maintainers)
Top GitHub Comments
Also, āMonsantoā š
The spec says https://docs.microsoft.com/en-us/typography/opentype/spec/otvaroverview