I am using opentype.js
to convert text to Bézier curves using fonts, and then turning those Bézier curves into Three.js Shape
s. However, this is giving me trouble, because ShapePath.toShapes()
accepts a parameter isCCW
, and if I get it wrong and the text contains any letters with holes (like O) then the text looks messed up.
Is there any item in the tables of OpenType fonts that tells you whether the glyphs are drawn clockwise or counterclockwise?