text-to-svg
Advanced tools
Changelog
~~3.1.4~~
This version had been failed to deploy. So do not use this version.
opentype.js
: 0.7.3
-> 0.11.0
Changelog
3.0.0
const TextToSVG = require('text-to-svg');
<br>instead of const TextToSVG = require('text-to-svg').TextToSVG;
loadSync
method.
const textToSVG = TextToSVG.loadSync();
<br>instead of const textToSVG = new TextToSVG();
load
method for asynchronous font loading.getMetrics
method instead of getSize
method.top
and bottom
.baseline
.width
and height
attribute to SVG element.