Package Exports
- mapbox-to-css-font
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mapbox-to-css-font) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Mapbox to CSS Font
Utility to convert Mapbox GL Style font names to CSS compatible font definitions.
Usage
var parseFont = require('mapbox-to-css-font');
parseFont('Open Sans Regular', 16);
// returns 'normal 400 16px Open Sans'
API
Parameters
Returns string CSS font definition, e.g. 'normal 400 16px Open Sans'
.