svgfont2js

Parse SVG font glyphs into JSON objects with normalized coordinates

MIT 1 个版本
安装
npm install svgfont2js
yarn add svgfont2js
pnpm add svgfont2js
bun add svgfont2js
README

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
版本列表
0.1.2 2015-03-16