# ecomfe/fontmin

Minify font seamlessly

Repository: https://github.com/ecomfe/fontmin
Canonical: https://ross.abutalabs.com/products/fontmin
Homepage: http://ecomfe.github.io/fontmin
Language: JavaScript
License: MIT
License Family: permissive
Topics: font, fontmin, subset, icon-font
Last push: 2025-08-13T07:03:41+00:00

## Health v2 (maintenance only)
Score: 39/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 36, release rhythm 8, longevity 100
- inputs: {"age_days": 4193, "days_push": 385, "days_rel": 649, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6212, forks 334 (observed 2026-08-28T04:09:40.069718+00:00)

## What it is
Fontmin is a pure JavaScript font subsetting and minification library for Node.js that compresses TTF fonts by glyph and converts between webfont formats (ttf, eot, woff, woff2, svg, otf). It also ships a CLI tool and desktop apps, and can generate CSS for icon fonts.

## Use cases
- subset a large Chinese font to only the glyphs used on a page
- convert ttf to woff2 and woff for web use
- generate icon font css from svg files
- minify font files to reduce page load size
- build a custom iconfont from a set of svg icons
- convert otf fonts to ttf

## When to choose
- you need to subset fonts to specific text in Node.js or via CLI
- you want to convert between ttf, eot, woff, woff2, and svg font formats
- you are building icon fonts from SVG assets
- you want a pure JavaScript solution with no native dependencies

## When to avoid
- you need font hinting preservation or advanced font editing features
- you work outside the Node.js/JavaScript ecosystem
- you need variable font or advanced OpenType feature subsetting

## Facets
- artifact type: library
- maturity: active
- function: image-processing, cli, plugin-system, developer-tools
- domain: web-development, frontend, files, developer-tools
- platform: cli, cross-platform
- tags: font-subsetting, webfont-converter, ttf, woff2, iconfont, font-minification, nodejs

## Member repositories
- ecomfe/fontmin (main) score 39

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:40.069718+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:47:17.186840+00:00, confidence not recorded.
  - readme: https://github.com/ecomfe/fontmin (fetched 2026-08-28T04:09:40.069718+00:00, sha 3d4a1ba14066)
  - homepage: http://ecomfe.github.io/fontmin (fetched 2026-08-29T08:43:52.390968+00:00, sha 1582fdf2c990)
  - registry_npm: https://registry.npmjs.org/fontmin (fetched 2026-08-29T08:43:52.393355+00:00, sha 908aa0730813)
- Data as of 2026-08-30T08:39:29.467469+00:00.
