techninja / hersheytextjs

A port of the Hershey engraving fonts to JSON for JavaScript/SVG
http://techninja.github.io/hersheytextjs/
MIT License
58 stars 6 forks source link

option to write right to left #8

Open KaiKruschel opened 1 year ago

KaiKruschel commented 1 year ago

Hi, I am working on generating svgs for arabic script. Since it is written from right to left I implemented that option as a toggle. Since the origin of the coordinate system stays the width can also be supplied since there is no way to know how wide the text is going to be before conversion. If you have an idea how to get around this I can add that as well.

Best, Kai