svgfont2glyphs

v0.1.4
Parse SVG font glyphs into JSON objects with normalized coordinates.
SVG font glyph JSON

svgfont2js

Parse SVG font glyphs into JSON objects with normalized coordinates. The resulting path data can be used directly in SVG documents or HTML5 canvas API to draw glyphs.

Installation

npm install svgfont2js

Usage

var fs = require("fs");
var svgfont2js = require("svgfont2js");

console.log(svgfont2js(fs.readFileSync("font.svg", "utf8")));

Build

Transpile the source code (written in ES6) to ES5 for distribution.

npm run build
npm i svgfont2glyphs

Metadata

  • MIT
  • Whatever
  • Riobard Zhan
  • released 3/1/2018

Downloads

Maintainers