We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 107e784 + a26faa3 commit a60f55dCopy full SHA for a60f55d
test/index.test.js
@@ -9,6 +9,12 @@ describe('mapbox-to-css-font', function() {
9
should(parseFont('Noto Sans Bold', 16)).eql('normal 700 16px "Noto Sans"');
10
should(parseFont('Noto Sans SemiBold Italic', 16)).eql('italic 600 16px "Noto Sans"');
11
});
12
+
13
+ it('handle line-height', function() {
14
+ should(parseFont('monospace', 16)).eql('normal 400 16px monospace');
15
+ should(parseFont('monospace', 16, 3.5)).eql('normal 400 16px/3.5 monospace');
16
+ should(parseFont('monospace', 16, '3em')).eql('normal 400 16px/3em monospace');
17
+ });
18
19
20
0 commit comments