Skip to content

v2.3.0

Compare
Choose a tag to compare
@ahocevar ahocevar released this 09 Mar 07:44
· 52 commits to master since this release
2461074

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"'