@fontsource/material-symbols-sharp 5.0.27 → 5.0.29

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 CHANGED
@@ -42,6 +42,6 @@ Copyright 2022, 2022 Google LLC. All Rights Reserved.
42
42
  [Apache-2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
43
43
 
44
44
  ## Other Notes
45
- Font version (provided by source): `v166`.
45
+ Font version (provided by source): `v171`.
46
46
 
47
47
  If you have any suggestions or ideas to improve the performance of font loading or expand the existing library, feel free to star and contribute to this repository. You can share your suggestions or ideas by creating an [issue](https://github.com/fontsource/fontsource/issues).
package/metadata.json CHANGED
@@ -11,8 +11,8 @@
11
11
  "GRAD": {"min": "-25", "max": "200", "default": "0", "step": "1"},
12
12
  "opsz": {"default": "48", "min": "30", "max": "48", "step": "0.1"}
13
13
  },
14
- "lastModified": "2024-03-20",
15
- "version": "v166",
14
+ "lastModified": "2024-04-09",
15
+ "version": "v171",
16
16
  "category": "icons",
17
17
  "license": {
18
18
  "type": "Apache-2.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fontsource/material-symbols-sharp",
3
- "version": "5.0.27",
3
+ "version": "5.0.29",
4
4
  "description": "Self-host the Material Symbols Sharp font in a neatly bundled NPM package.",
5
5
  "main": "index.css",
6
6
  "publishConfig": {"access": "public"},
@@ -26,5 +26,5 @@
26
26
  "url": "https://github.com/fontsource/font-files.git",
27
27
  "directory": "fonts/google/material-symbols-sharp"
28
28
  },
29
- "publishHash": "06d36c3795e850bd"
29
+ "publishHash": "33dc21ab91c129e9"
30
30
  }
package/scss/mixins.scss CHANGED
@@ -34,6 +34,7 @@ $displayVar: null !default;
34
34
  // Deprecated
35
35
  $displayVar: $displayVar
36
36
  ) {
37
+
37
38
  @if $displayVar != null {
38
39
  @warn "$displayVar is deprecated due to the limitation of using css variables in @font-face (https://github.com/fontsource/fontsource/issues/726).";
39
40
  }
@@ -52,7 +53,7 @@ $displayVar: null !default;
52
53
  $subsets: if(
53
54
  $subsets,
54
55
  if($subsets == all, map.get($metadata, subsets), $subsets),
55
- map.get($metadata, defaults, subset)
56
+ map.get($metadata, subsets)
56
57
  );
57
58
  $weights: if(
58
59
  $weights,
@@ -72,13 +73,20 @@ $displayVar: null !default;
72
73
 
73
74
  @each $subset in $subsets {
74
75
  @each $unicodeSubset, $unicodeRange in map.get($metadata, unicode) {
76
+ // If condition is true, generate faces for the current subset
75
77
  @if (
76
- ($subset == $unicodeSubset) or
77
- (
78
- // Is numeric subset
79
- ($subset == map.get($metadata, defaults, subset)) and not
80
- list.index(map.get($metadata, subsets), $unicodeSubset)
81
- )
78
+ // If there is no unicode information for the font or
79
+ ($unicodeSubset == null) or
80
+ // If the subset match a unicode subset or
81
+ ($subset == $unicodeSubset) or
82
+ (
83
+ // If $unicodeSubset is a numeric unicode subset
84
+ // and current subset exists in the list of font subsets but does not match any unicode subset
85
+ // then generate faces for this numeric unicode subset as it is representing part of the current subset
86
+ list.index(map.get($metadata, subsets), $subset) and not
87
+ map.has-key($metadata, unicode, $subset) and not
88
+ list.index(map.get($metadata, subsets), $unicodeSubset)
89
+ )
82
90
  ) {
83
91
  @each $weight in if($axes, null, $weights) {
84
92
  @each $axis in $axes {