open-index/open-npm huggingface dataset:
npm package: @furkot/glyph-pbf-composite
Description: Combine glyph (SDF) PBFs on the fly.
Latest version: 1.0.2

[![NPM version][npm-image]][npm-url]
[![Build Status][build-image]][build-url]
[![Dependency Status][deps-image]][deps-url]

Modernized clone of [@mapbox/glyph-pbf-composite]

# glyph-pbf-composite

Combine glyph (SDF) PBFs on the fly.

## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

#### Table of Contents

*   [combine](#combine)
    *   [Parameters](#parameters)

### 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](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** An array of SDF PBFs
*   `fontstack` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** Optional fontstack name to use for the combined PBF

Returns **[Buffer](https://nodejs.org/api/buffer.html)** A combined SDF PBF

## License

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

[@mapbox/glyph-pbf-composite]: https://npmjs.org/package/@mapbox/glyph-pbf-composite

[npm-image]: https://img.shields.io/npm/v/@furkot/glyph-pbf-composite
[npm-url]: https://npmjs.org/package/@furkot/glyph-pbf-composite

[build-url]: https://github.com/furkot/glyph-pbf-composite/actions/workflows/check.yaml
[build-image]: https://img.shields.io/github/actions/workflow/status/furkot/glyph-pbf-composite/check.yaml?branch=main

[deps-image]: https://img.shields.io/librariesio/release/npm/@furkot/glyph-pbf-composite
[deps-url]: https://libraries.io/npm/@furkot%2Fglyph-pbf-composite