- Fix deployment script.
This version had been failed to deploy. So do not use this version.
- Tested on Node.js v10.15.2
- Update dependencies.
opentype.js:0.7.3->0.11.0
- Tested on Node.js v6.11.1
- Update dependencies.
opentype.js:0.7.1->0.7.3
- Pin opentype.js version to
0.7.1. (see #25)
- Tested on Node.js v6.10.3
- Update dependencies.
opentype.js:0.6.6->0.7.1
- Support letter-spacing option.
- Support tracking option.
- Fix #10
- Simplify module layout
- Please use
const TextToSVG = require('text-to-svg');
instead ofconst TextToSVG = require('text-to-svg').TextToSVG;
- Please use
- Add
loadSyncmethod.- Please use
const textToSVG = TextToSVG.loadSync();
instead ofconst textToSVG = new TextToSVG();
- Please use
- Add
loadmethod for asynchronous font loading. - Add
getMetricsmethod instead ofgetSizemethod. - Correct vertical anchor option.
- Correct
topandbottom. - Add
baseline.
- Correct
- Add
widthandheightattribute to SVG element.
- Tested on Node.js v5.3.0
- Update dependencies.
opentype.js:0.5.0->0.6.0
- Tested on Node.js v4.2.1
- Update dependencies.
- Command line tool shows help when args are not provided.
- Fix API document.
- Add
getSizemethod. - Add
anchoroption.left,center,right,top,middle,bottom
- Add command line tool.
- Add
anchoroption.
- Fix index.js
- Include index.js to npm files.
- Reform the API.
- Include default font.
- Remove the command line tool.
- Add TextToSVG.getD(text, x, y, fontSize, options);
initial release