@fontsource/m-plus-2 4.5.2 → 4.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/metadata.json +3 -5
- package/package.json +1 -1
- package/scss/mixins.scss +7 -7
package/README.md
CHANGED
|
@@ -47,6 +47,6 @@ Most of the fonts in the collection use the SIL Open Font License, v1.1. Some fo
|
|
|
47
47
|
|
|
48
48
|
## Other Notes
|
|
49
49
|
|
|
50
|
-
Font version (provided by source): `
|
|
50
|
+
Font version (provided by source): `v4`.
|
|
51
51
|
|
|
52
52
|
Feel free to star and contribute new ideas to this repository that aim to improve the performance of font loading, as well as expanding the existing library we already have. Any suggestions or ideas can be voiced via an [issue](https://github.com/fontsource/fontsource/issues).
|
package/metadata.json
CHANGED
|
@@ -5,11 +5,9 @@
|
|
|
5
5
|
"weights": [100, 200, 300, 400, 500, 600, 700, 800, 900],
|
|
6
6
|
"styles": ["normal"],
|
|
7
7
|
"defSubset": "latin",
|
|
8
|
-
"variable": {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"lastModified": "2021-12-09",
|
|
12
|
-
"version": "v2",
|
|
8
|
+
"variable": { "wght": { "default": "400", "min": "100", "max": "900", "step": "1" } },
|
|
9
|
+
"lastModified": "2022-02-03",
|
|
10
|
+
"version": "v4",
|
|
13
11
|
"category": "sans-serif",
|
|
14
12
|
"source": "https://fonts.google.com/",
|
|
15
13
|
"license": "https://fonts.google.com/attribution",
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@fontsource/m-plus-2","version":"4.5.
|
|
1
|
+
{"name":"@fontsource/m-plus-2","version":"4.5.6","description":"Self-host the M PLUS 2 font in a neatly bundled NPM package.","main":"index.css","publishConfig":{"access":"public"},"keywords":["fontsource","font","font family","google fonts","M PLUS 2","m-plus-2","css","sass","front-end","web","typeface"],"author":"Lotus <declininglotus@gmail.com>","license":"MIT","homepage":"https://github.com/fontsource/fontsource/tree/main/fonts/google/m-plus-2#readme","repository":{"type":"git","url":"https://github.com/fontsource/fontsource.git","directory":"fonts/google/m-plus-2"}}
|
package/scss/mixins.scss
CHANGED
|
@@ -62,17 +62,17 @@ $unicodeRangeValues: ();
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
$
|
|
66
|
-
$
|
|
65
|
+
$fontNameVariable: "M PLUS 2Variable";
|
|
66
|
+
$weightVariable: 100 900;
|
|
67
67
|
$type: "wghtOnly";
|
|
68
68
|
$stretch: null;
|
|
69
|
-
|
|
69
|
+
|
|
70
70
|
@mixin fontFaceVariable(
|
|
71
|
-
$fontName: $
|
|
71
|
+
$fontName: $fontNameVariable,
|
|
72
72
|
$fontId: $fontId,
|
|
73
73
|
$style: $style,
|
|
74
74
|
$display: $display,
|
|
75
|
-
$weight: $
|
|
75
|
+
$weight: $weightVariable,
|
|
76
76
|
$fontDir: $fontDir,
|
|
77
77
|
$type: $type,
|
|
78
78
|
$stretch: $stretch,
|
|
@@ -94,11 +94,11 @@ $stretch: null;
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
@mixin fontFaceVariableCustom(
|
|
97
|
-
$fontName: $
|
|
97
|
+
$fontName: $fontNameVariable,
|
|
98
98
|
$fontId: $fontId,
|
|
99
99
|
$style: $style,
|
|
100
100
|
$display: $display,
|
|
101
|
-
$weight: $
|
|
101
|
+
$weight: $weightVariable,
|
|
102
102
|
$woff2Path: null,
|
|
103
103
|
$unicodeRange: $unicodeRange,
|
|
104
104
|
$unicodeRangeValues: $unicodeRangeValues
|