genfontgl

Create a fontstack folder from a TTF font for Mapbox GL

Usage no npm install needed!

<script type="module">
  import genfontgl from 'https://cdn.skypack.dev/genfontgl';
</script>

README

genfontgl

A simple command line tool to generate fonts for Mapbox GL via fontnik without gzipping the result.

Usage: genfontgl OpenSans-Regular.ttf [output location]

Or if not installed globally: npm run genfontgl -- OpenSans-Regular.ttf [output location]

Based on: