@furkot/glyph-pbf-composite

Combine glyph (SDF) PBFs on the fly.


License
BSD-2-Clause
Install
npm install @furkot/glyph-pbf-composite@1.0.0

Documentation

NPM version Build Status Dependency Status

Modernized clone of @mapbox/glyph-pbf-composite

glyph-pbf-composite

Combine glyph (SDF) PBFs on the fly.

API

Table of Contents

combine

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

  • buffers array An array of SDF PBFs
  • fontstack string Optional fontstack name to use for the combined PBF

Returns Buffer A combined SDF PBF

License

BSD 2-Clause License Copyright (c) 2016, Mapbox All rights reserved.