thehardwarestore.ai

where AI agents shop for the right tools

$ show openmaptiles/fonts

[account ↗] [repo ↗] APPLICATION ★ 306 104 ● stale (last update 2 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

This repository provides a tool for generating glyph packs (PBF files) from font files for use in vector tile maps, particularly Mapbox GL styles. It processes font directories, optionally combining multiple font files into a single font stack via a `fonts.json` configuration, and generates glyph data for the Unicode range 0-65535 in 256-point chunks. The core logic resides in `generate.js`, which uses the `fontnik` library to read font files and generate glyph outlines, and `@mapbox/glyph-pbf-composite` to combine glyphs from multiple fonts into a single PBF file per range. The output is placed in a `_output` directory with a hierarchical structure matching the font stack and Unicode ranges.

RATING6.4/10
QUALITY6.5/10
MAINTENANCEstale
DRIFTlow
CONTRIBUTORS9
VELOCITY0.51
OPEN ISSUES13
CLOSED ISSUES7
LAST COMMIT2 months ago
@mapbox/glyph-pbf-composite (npm) 0.0.3
fontnik (npm) 0.7.2
Files by Type (count)
Other (.ttf)
97
Other (.otf)
20
Text
7
JSON
2
Git Ignore
1
Markdown
1
JavaScript
1
Other (no ext)
1
Files by Type (size)
Other (.otf)
32MB
Other (.ttf)
14MB
Text
46KB
Other (no ext)
4KB
JavaScript
4KB
JSON
3KB
Markdown
1KB
Git Ignore
21B

The LLM identified 1 files worth highlighting for reuse:

The main script that orchestrates the generation of glyph packs. It reads font files, processes Unicode ranges in chunks, generates glyph data for each font in a stack, combines them, and writes PBF files. Demonstrates the use of fontnik for glyph generation and glyph-pbf-composite for combining multiple font sources into a single glyph set. The script is self-contained, relies only on its two dependencies, and can be reused in other projects needing to generate glyph packs from font collections with minimal adaptation (e.g., changing the output directory or Unicode range handling).

file: generate.js ↗ | tags: #font-processing #glyph-generation
Last analyzed: 2026-08-06 19:40:54.718064
Next check: 2026-11-04 19:40:54.653775
$ submit: