- Fix loadFont function.
This version doesn't work. So do not use this version.
- Rewrite in Typescript by @sasnovacat08
- 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
loadSync
method.- Please use
const textToSVG = TextToSVG.loadSync();
instead ofconst textToSVG = new TextToSVG();
- Please use
- Add
load
method for asynchronous font loading. - Add
getMetrics
method instead ofgetSize
method. - Correct vertical anchor option.
- Correct
top
andbottom
. - Add
baseline
.
- Correct
- Add
width
andheight
attribute 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
getSize
method. - Add
anchor
option.left
,center
,right
,top
,middle
,bottom
- Add command line tool.
- Add
anchor
option.
- 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