v2.3.0
Add support for line-height
, by providing a 3rd argument. You can now do something like
var parseFont = require('mapbox-to-css-font');
parseFont('Open Sans Regular', 16, 1.2);
// returns 'normal 400 16px/1.2 "Open Sans"'
Add support for line-height
, by providing a 3rd argument. You can now do something like
var parseFont = require('mapbox-to-css-font');
parseFont('Open Sans Regular', 16, 1.2);
// returns 'normal 400 16px/1.2 "Open Sans"'