@fontsource/m-plus-2 4.5.1 → 4.5.2
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/package.json +1 -1
- package/scss/mixins.scss +14 -7
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@fontsource/m-plus-2","version":"4.5.
|
|
1
|
+
{"name":"@fontsource/m-plus-2","version":"4.5.2","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/master/packages/m-plus-2#readme","repository":{"type":"git","url":"https://github.com/fontsource/fontsource.git","directory":"packages/m-plus-2"}}
|
package/scss/mixins.scss
CHANGED
|
@@ -29,8 +29,6 @@ $unicodeMap: (0: (U+25ee8, U+25f23, U+25f5c, U+25fd4, U+25fe0, U+25ffb, U+2600c,
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
$defSubset: "latin";
|
|
32
|
-
$woff2Path: "#{$fontDir}/#{$fontId}-#{$defSubset}-#{$weight}-#{$style}.woff2";
|
|
33
|
-
$woffPath: "#{$fontDir}/#{$fontId}-#{$defSubset}-#{$weight}-#{$style}.woff";
|
|
34
32
|
$unicodeRange: false;
|
|
35
33
|
$unicodeRangeValues: ();
|
|
36
34
|
|
|
@@ -40,11 +38,18 @@ $unicodeRangeValues: ();
|
|
|
40
38
|
$style: $style,
|
|
41
39
|
$display: $display,
|
|
42
40
|
$weight: $weight,
|
|
43
|
-
$woff2Path:
|
|
44
|
-
$woffPath:
|
|
41
|
+
$woff2Path: null,
|
|
42
|
+
$woffPath: null,
|
|
45
43
|
$unicodeRange: $unicodeRange,
|
|
46
44
|
$unicodeRangeValues: $unicodeRangeValues
|
|
47
45
|
) {
|
|
46
|
+
@if $woffPath == null {
|
|
47
|
+
$woffPath: "#{$fontDir}/#{$fontId}-#{$defSubset}-#{$weight}-#{$style}.woff";
|
|
48
|
+
}
|
|
49
|
+
@if $woff2Path == null {
|
|
50
|
+
$woff2Path: "#{$fontDir}/#{$fontId}-#{$defSubset}-#{$weight}-#{$style}.woff2";
|
|
51
|
+
}
|
|
52
|
+
|
|
48
53
|
@font-face {
|
|
49
54
|
font-family: "#{$fontName}";
|
|
50
55
|
font-style: $style;
|
|
@@ -88,18 +93,20 @@ $stretch: null;
|
|
|
88
93
|
}
|
|
89
94
|
}
|
|
90
95
|
|
|
91
|
-
$woff2Path: "#{$fontDir}/#{$fontId}-#{$defSubset}-variable-#{$type}-#{$style}.woff2";
|
|
92
|
-
|
|
93
96
|
@mixin fontFaceVariableCustom(
|
|
94
97
|
$fontName: $fontName,
|
|
95
98
|
$fontId: $fontId,
|
|
96
99
|
$style: $style,
|
|
97
100
|
$display: $display,
|
|
98
101
|
$weight: $weight,
|
|
99
|
-
$woff2Path:
|
|
102
|
+
$woff2Path: null,
|
|
100
103
|
$unicodeRange: $unicodeRange,
|
|
101
104
|
$unicodeRangeValues: $unicodeRangeValues
|
|
102
105
|
) {
|
|
106
|
+
@if $woff2Path == null {
|
|
107
|
+
$woff2Path: "#{$fontDir}/#{$fontId}-#{$defSubset}-variable-#{$type}-#{$style}.woff2";
|
|
108
|
+
}
|
|
109
|
+
|
|
103
110
|
@font-face {
|
|
104
111
|
font-family: "#{$fontName}";
|
|
105
112
|
font-style: $style;
|