# svgfont2js

> Parse SVG font glyphs into JSON objects with normalized coordinates

Latest version **0.1.2** (published 2015-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install svgfont2js
pnpm add svgfont2js
yarn add svgfont2js
bun add svgfont2js
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2015-03-16 |
| First published | 2015-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Riobard Zhan |
| Maintainers | riobard |
| Keywords | SVG, font, glyph, JSON |

## Links

- npm: https://www.npmjs.com/package/svgfont2js
- Repository: https://github.com/riobard/svgfont2js
- Issues: https://github.com/riobard/svgfont2js/issues
- npm.io page: https://npm.io/package/svgfont2js

## Dependencies (2)

- [xml2js](https://npm.io/package/xml2js.md) ^0.4.5
- [svgpath](https://npm.io/package/svgpath.md) ^1.0.7

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.2 (latest) — 2015-03-16

## 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

```sh
npm install svgfont2js
```


## Usage


```JavaScript
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.

```sh
npm run build
```

---
_Source: https://npm.io/package/svgfont2js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
