opentypejs/opentype.js
Read and write OpenType fonts using JavaScript. observed · 2026-08-28
Health v2 · maintenance only
92/100
- Activity 96
- Release rhythm 83
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 6
- age_days: 4723
- days_rel: 119
- days_push: 25
- n_releases_24m: 2
Adoption not part of the score
5012 stars · 553 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
opentype.js is a JavaScript library for parsing and writing OpenType and TrueType fonts in the browser and Node.js. It provides access to glyph letterforms, bézier paths, kerning, ligatures, and color glyphs from font files.
Use cases
- parse ttf and otf font files in javascript
- convert text to svg bezier paths using a font
- read glyph outlines and metrics from a font
- apply kerning and ligatures when rendering text to paths
- extract font metadata and character maps in nodejs
- render custom text with color glyphs and emojis on canvas
When to choose
- you need low-level access to font glyphs and outlines in JavaScript
- you want to render text as vector paths in the browser or Node.js
- you need to inspect or modify OpenType/TrueType font data programmatically
When to avoid
- you just need to display text with a webfont, use CSS instead
- you need full font editing or font file creation with advanced features
- you work outside the JavaScript ecosystem
Facets
library · maturity active
parser graphics image-processing web-development graphics frontend browser opentype truetype fonts glyphs kerning typography woff ttf otf nodejs javascript
3 sources
- readme: https://github.com/opentypejs/opentype.js · fetched 2026-08-28 · 31f243102ef6
- homepage: https://opentype.js.org/ · fetched 2026-08-29 · 471eea4be6f5
- registry_npm: https://registry.npmjs.org/opentype.js · fetched 2026-08-29 · fc2cb0959485
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| opentypejs/opentype.js | main | 92 |
For agents
markdown · JSON · MCP: product_card(name="opentypejs/opentype.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem