Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

svg-text-path

Convert to Path Textfields within an SVG file

    4.0.0unpublishedlatest

Version published
Maintainers
1

Readme

Source

Convert to Path Textfields in SVG file

npm install --save svg-text-path
  • Example usage
const svgToPath = require('svg-text-path');
  • Load and save paths of the svg file
var options={ source:'./public/convert/svg.svg', destination:'./public/convert/svg-convert.svg' }
  • Generates convert to path svg and saves to destination path
const convertFile=await svgToPath.conversion(options);

Add Fonts

  • Open svg-text-path/config/fonts.json file
{'font': [{ 'Times New Roman': { 'dest': './public/fonts/times.ttf' } }]}
  • Simply add more fonts to json
'My New Font Name': { 'dest': 'My New Font Path' } {'font': [{ 'Times New Roman': { 'dest': './public/fonts/times.ttf' }, 'My New Font Name': { 'dest': 'My New Font Path' } }]}

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc