turtlestitch/stitchcode/fonts/hershey
Michael Aschauer 724b6ea633 add asteroid font 2018-10-11 17:40:38 +02:00
..
lib add asteroid font 2018-10-11 17:40:38 +02:00
.gitignore add asteroid font 2018-10-11 17:40:38 +02:00
LICENSE add asteroid font 2018-10-11 17:40:38 +02:00
README.md add asteroid font 2018-10-11 17:40:38 +02:00
fonts.json add asteroid font 2018-10-11 17:40:38 +02:00
futuram.json add asteroid font 2018-10-11 17:40:38 +02:00
hersheyexample.html add asteroid font 2018-10-11 17:40:38 +02:00
hersheytest.js add asteroid font 2018-10-11 17:40:38 +02:00
hersheytext.json add asteroid font 2018-10-11 17:40:38 +02:00
hersheytext.min.json add asteroid font 2018-10-11 17:40:38 +02:00
package.json add asteroid font 2018-10-11 17:40:38 +02:00

README.md

Hershey Text JS

A port of the EMSL Hershey engraving font data from the Hershey Text Inkscape Plugin to JSON, capable of being rendered quickly via JavaScript & SVG.

This includes an quickly written example renderer, see the demo on the live github page to give it a try!

Node.js Usage

Install via npm install hersheytext, then include in your node script with var hersheyText = require('hersheytext');. This will give you access to the fonts at hersheyText.fonts, EG hersheyText.fonts['futural'].chars[2]. The chars[n].d string value can be put directly into the d attribute within a <path> SVG element, or imported to a Paper.js path.

See hersheytest.js for more usage examples, check lib/hersheytext.js for full function documentation.


JSON data Public Domain, All other code MIT Licensed.