opentype.js
opentype.js copied to clipboard
Composite glyph 2x2 transformation has wrong order.
If you take a look at this line here:
https://github.com/opentypejs/opentype.js/blob/14a22d19c5bcebc13340dd650a590fbd77b063e8/src/tables/glyf.js#L161
It does not match what is in freetype:
https://github.com/aseprite/freetype2/blob/45524679c6798b3d8b75ab03d54a53bf46912871/src/truetype/ttgload.c#L674
The 01 and the 10 need to be flipped in order to work.
See the "+" character on this font: https://github.com/google/fonts/blob/master/ofl/changa/static/Changa-Bold.ttf
