@fontsource-variable/noto-sans-kr 5.0.4 → 5.0.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/index.css CHANGED
@@ -1225,7 +1225,7 @@
1225
1225
  font-display: swap;
1226
1226
  font-weight: 100 900;
1227
1227
  src: url(./files/noto-sans-kr-latin-ext-wght-normal.woff2) format('woff2-variations');
1228
- unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
1228
+ unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
1229
1229
  }
1230
1230
 
1231
1231
  /* noto-sans-kr-latin-wght-normal */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fontsource-variable/noto-sans-kr",
3
- "version": "5.0.4",
3
+ "version": "5.0.6",
4
4
  "description": "Self-host the Noto Sans KR 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/variable/noto-sans-kr"
28
28
  },
29
- "publishHash": "53435c250886fb05"
29
+ "publishHash": "ed5f0a27f1442085"
30
30
  }
@@ -141,6 +141,6 @@ $unicode: (
141
141
  119: (U+20-22,U+27-2a,U+2c-38,U+3a-3b,U+3f,U+41-47,U+4a-4c,U+4f-5d,U+61-7b,U+7d,U+a1,U+ab,U+ae,U+b7,U+bb,U+bf,U+2013-2014,U+201c-201d,U+2122,U+ac00,U+ace0,U+ae30,U+b2e4,U+b85c,U+b9ac,U+c0ac,U+c2a4,U+c2dc,U+c774,U+c778,U+c9c0,U+d558),
142
142
  cyrillic: (U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116),
143
143
  vietnamese: (U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB),
144
- latin-ext: (U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF),
144
+ latin-ext: (U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF),
145
145
  latin: (U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD),
146
146
  ) !default;
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 {
package/unicode.json CHANGED
@@ -121,6 +121,6 @@
121
121
  "[119]": "U+20-22,U+27-2a,U+2c-38,U+3a-3b,U+3f,U+41-47,U+4a-4c,U+4f-5d,U+61-7b,U+7d,U+a1,U+ab,U+ae,U+b7,U+bb,U+bf,U+2013-2014,U+201c-201d,U+2122,U+ac00,U+ace0,U+ae30,U+b2e4,U+b85c,U+b9ac,U+c0ac,U+c2a4,U+c2dc,U+c774,U+c778,U+c9c0,U+d558",
122
122
  "cyrillic": "U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116",
123
123
  "vietnamese": "U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB",
124
- "latin-ext": "U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF",
124
+ "latin-ext": "U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF",
125
125
  "latin": "U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD"
126
126
  }
package/wght.css CHANGED
@@ -1225,7 +1225,7 @@
1225
1225
  font-display: swap;
1226
1226
  font-weight: 100 900;
1227
1227
  src: url(./files/noto-sans-kr-latin-ext-wght-normal.woff2) format('woff2-variations');
1228
- unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
1228
+ unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
1229
1229
  }
1230
1230
 
1231
1231
  /* noto-sans-kr-latin-wght-normal */