@mapbox/glyph-pbf-composite

Combine glyph (SDF) PBFs on the fly.

Stats

StarsIssuesVersionUpdatedCreatedSize
@mapbox/glyph-pbf-composite
0.0.35 years ago5 years agoMinified + gzip package size for @mapbox/glyph-pbf-composite in KB

Readme

glyph-pbf-composite

Combine glyph (SDF) PBFs on the fly.

combine(buffers)

Combine any number of glyph (SDF) PBFs. Returns a re-encoded PBF with the combined font faces, composited using array order to determine glyph priority.

Parameters

parameter type description
buffers array An array of SDF PBFs.

Installation

Requires nodejs.

$ npm install @mapbox/glyph-pbf-composite

Tests

$ npm test

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.