single-file-core 1.3.23 → 1.3.24

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.
@@ -348,6 +348,9 @@ function getUsedFontWeight(fontInfo, fontStyle, fontWeights) {
348
348
  foundWeight = findDescendingFontWeight(fontWeight, fontWeights);
349
349
  }
350
350
  }
351
+ if (!foundWeight) {
352
+ foundWeight = fontWeights.find(weights => weights[0] <= fontWeight && weights[1] >= fontWeight);
353
+ }
351
354
  } else {
352
355
  foundWeight = fontWeights[0];
353
356
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.3.23",
3
+ "version": "1.3.24",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",