Closed madig closed 4 years ago
It happens inside clipExecute()
. The input parameters are the same, but the output resultContours
are ordered differently on Windows and Linux.
Here's a reproducer driving pyclipper directly: https://gist.github.com/madig/998ec05ef8a496f984aaa86aeceda6fc.
I suggest you open the bug on pyclipper repository, maybe other non-font users can help
Filed upstream at https://sourceforge.net/p/polyclipping/bugs/195.
Oh well. angusj responded there and said it's just how the algorithm works. Guess I have to write that ufo2ft filter.
Optional ufo2ft filter implemented in https://github.com/googlefonts/ufo2ft/pull/345.
Stumbled over this because fonts build on our build server (running Linux) produce differently ordered contours for a specific glyph which broke hinting. Can reproduce with two glyphs from Noto Sans Regular (NotoSansTest.ufo.zip). Running the following script on Linux and Windows will produce differently ordered contours:
Still drilling down to where this happens.