googlefonts / ufo2ft

A bridge from UFOs to FontTools objects (and therefore, OTFs and TTFs).
MIT License
151 stars 43 forks source link

allow to reverseDirection without convertCubics #770

Closed anthrotype closed 1 year ago

anthrotype commented 1 year ago

previously reverseDirection option was handled exclusively within cu2qu, but since convertCubics=False allows one to skip cu2qu altogether, it'd become impossible to do the reversing independently from the cu2qu conversion. So I added a separate filter that does the reversing (using the fontTools ReverseContourPointPen) used only when convertCubics=False and reverseDirection=True.