# fontpath-renderer

> a generic text renderer for canvas/webgl/etc

Latest version **4.0.0** (published 2015-03-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install fontpath-renderer
pnpm add fontpath-renderer
yarn add fontpath-renderer
bun add fontpath-renderer
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2015-03-10 |
| First published | 2014-05-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | Matt DesLauriers |
| Maintainers | mattdesl |
| Keywords | fontpath, font, ttf, otf, glyph, render, fillText, canvas, webgl, gl, freetype |

## Links

- npm: https://www.npmjs.com/package/fontpath-renderer
- Repository: https://github.com/mattdesl/fontpath-renderer
- Issues: https://github.com/mattdesl/fontpath-renderer/issues
- npm.io page: https://npm.io/package/fontpath-renderer

## Dependencies (3)

- [fontpath-util](https://npm.io/package/fontpath-util.md) ^2.0.0
- [fontpath-wordwrap](https://npm.io/package/fontpath-wordwrap.md) ^1.0.1
- [fontpath-glyph-iterator](https://npm.io/package/fontpath-glyph-iterator.md) ^1.1.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 4.0.0 (latest) — 2015-03-10
- 3.1.0 — 2014-10-20
- 3.0.0 — 2014-10-18
- 2.0.2 — 2014-10-17
- 2.0.1 — 2014-10-17
- 2.0.0 — 2014-10-17
- 1.0.2 — 2014-08-17
- 1.0.1 — 2014-08-17
- 0.1.3 — 2014-07-06
- 0.1.2 — 2014-07-06
- 0.1.1 — 2014-07-06
- 0.1.0 — 2014-05-20
- 0.0.2 — 2014-05-20
- 0.0.1 — 2014-05-20
- 0.0.0 — 2014-05-20

## README

# fontpath-renderer

[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)

A generic renderer for fontpath glyphs. 

**This is a low-level module** and is mostly used internally.

Instead, you are encouraged to use [fontpath-canvas](https://github.com/mattdesl/fontpath-canvas) for 2D canvas, [fontpath-gl](https://github.com/mattdesl/fontpath-gl) for WebGL, or [fontpath-simple-renderer](https://github.com/mattdesl/fontpath-simple-renderer) for basic render-agnostic custom solutions.

However, this produces the least amount of GC thrashing, and is best suited for highly optimized font rendering. 

[![NPM](https://nodei.co/npm/fontpath-renderer.png)](https://nodei.co/npm/fontpath-renderer/)

## demo

In the [demo](demo) folder is a simple implementation rendering triangles with some mouse interaction.

[![Result](http://i.imgur.com/jC4hqB2.png)](http://mattdesl.github.io/fontpath-renderer/demo/tris.html)

You can [run the demo here](http://mattdesl.github.io/fontpath-renderer/demo/tris.html).

## License 

MIT.

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