Skip to content

Releases: openlayers/mapbox-to-css-font

v3.0.2

17 Jul 17:50
1638b96
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.0.1...v3.0.2

v3.0.1

17 Jul 17:47
4e0b213
Compare
Choose a tag to compare

What's Changed

  • Update README to show ES module imports by @ahocevar in #21

Full Changelog: v3.0.0...v3.0.1

v3.0.0

17 Jul 17:43
3c1651a
Compare
Choose a tag to compare

Backwards incompatible changes

  • This package is now published as ES modules, and no longer provides CommonJS modules.

What's Changed

  • Use ES modules, add types and github action checks by @ahocevar in #20

Full Changelog: v2.4.5...v3.0.0

v2.4.5

11 Jul 14:13
8aa025b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.4.4...v2.4.5

v2.4.4

11 Jul 14:13
efd5809
Compare
Choose a tag to compare

Full Changelog: v2.4.3...v2.4.4

v2.4.3

11 Jul 14:13
8ff8472
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.4.2...v2.4.3

v2.4.2

09 Jan 07:06
b6c61ff
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.4.1...v2.4.2

v2.4.1

18 Jan 20:31
ccfc67c
Compare
Choose a tag to compare
  • Recognize two-word weights with space

Full Changelog: v2.4.0...v2.4.1

v2.4.0

04 Jul 08:56
0c02827
Compare
Choose a tag to compare
  • Changed default weight from normal to 400, which has the same meaning

v2.3.0

09 Mar 07:44
2461074
Compare
Choose a tag to compare

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