subfont 6.12.4 → 6.12.5
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/CHANGELOG.md +35 -7
- package/lib/subsetFonts.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
### v7.1.1 (2023-05-08)
|
|
2
|
+
|
|
3
|
+
- [Fix file name generation when the font-family contains backslash Fixes \#171](https://github.com/Munter/subfont/commit/1cff3c4095680569ecf50d017035730eb4bd0cc0) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
4
|
+
|
|
5
|
+
### v7.1.0 (2023-04-15)
|
|
6
|
+
|
|
7
|
+
- [#170](https://github.com/Munter/subfont/pull/170) Use harfbuzzjs instead of fontkit ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
8
|
+
|
|
9
|
+
### v6.12.5 (2023-05-07)
|
|
10
|
+
|
|
11
|
+
#### Pull requests
|
|
12
|
+
|
|
13
|
+
- [#170](https://github.com/Munter/subfont/pull/170) Use harfbuzzjs instead of fontkit ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
14
|
+
- [#169](https://github.com/Munter/subfont/pull/169) Support full instancing of variable fonts ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
15
|
+
|
|
16
|
+
#### Commits to master
|
|
17
|
+
|
|
18
|
+
- [Fix file name generation when the font-family contains backslash Fixes \#171](https://github.com/Munter/subfont/commit/1cff3c4095680569ecf50d017035730eb4bd0cc0) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
19
|
+
- [Also tell prettier to ignore the puppeteer-browsers dir](https://github.com/Munter/subfont/commit/0e55e8838902d4c4730176313359abbda1c8ebd6) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
20
|
+
- [Revert "Drop node.js 14"](https://github.com/Munter/subfont/commit/5e54905f05bc398b4aebdbefeb766c42664866b3) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
21
|
+
- [Tell eslint to ignore the puppeteer-browsers dir](https://github.com/Munter/subfont/commit/99bca776a0bd7fab4c3e9c1084c23ae5f7c4e18b) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
22
|
+
- [Drop node.js 14](https://github.com/Munter/subfont/commit/0dcf1ed53fa20f7eb4585e6e3813fa8d97aefae5) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
23
|
+
- [+11 more](https://github.com/Munter/subfont/compare/v6.12.4...v6.12.5)
|
|
24
|
+
|
|
25
|
+
### v6.12.4 (2023-01-06)
|
|
26
|
+
|
|
27
|
+
- [Adapt to a backwards incompatible change in @hookun\/parse-animation-shorthand 0.1.5](https://github.com/Munter/subfont/commit/0d024aeaca1ac4ebb52ecacf9e20151d3102b1df) ([Andreas Lind](mailto:andreas.lind@workday.com))
|
|
28
|
+
|
|
1
29
|
### v6.12.3 (2023-01-06)
|
|
2
30
|
|
|
3
31
|
- [Update @hookun\/parse-animation-shorthand to ^0.1.5, fixes \#168](https://github.com/Munter/subfont/commit/ec19b28392e02c2a4cc42e0124cca5fce4c2ba32) ([Andreas Lind](mailto:andreas.lind@workday.com))
|
|
@@ -54,9 +82,13 @@
|
|
|
54
82
|
- [Update subset-font to ^1.5.0](https://github.com/Munter/subfont/commit/ba79ef6db81cedfd0e52672b530ca3afddd68a94) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
55
83
|
- [Fix warning about missing glyphs for BMP chars](https://github.com/Munter/subfont/commit/5ba0168f35bfef33f9bb9cc8a6d64de8fa1d5585) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
56
84
|
- [Fix CHANGELOG generation in preversion script](https://github.com/Munter/subfont/commit/3ea696f8c336c6072411c9817c0c2f5b8d8d61b9) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
85
|
+
|
|
86
|
+
### v6.6.1 (2022-07-09)
|
|
87
|
+
|
|
88
|
+
- [ugrvw](https://github.com/Munter/subfont/commit/5ccb873025f9790faf65641551df1a7e65fbfdbf) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
57
89
|
- [Fix CHANGELOG https:\/\/github.com\/Munter\/subfont\/commit\/5365689a5a925304a158fddef2b6af702857371c\#r78084394](https://github.com/Munter/subfont/commit/d42c7a2cffd33662d42d4532c45cb8b90080f128) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
58
90
|
- [Expect browserslist to only prescribe woff I guess the browser features + usage statistics finally changed so woff isn't needed](https://github.com/Munter/subfont/commit/b70db9b769955cabbda2f2a76f2e7758f9968ec7) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
59
|
-
- [+
|
|
91
|
+
- [Tests: Tolerate u+ in unicode-range \(I guess an in-range dep changed\)](https://github.com/Munter/subfont/commit/92a7871457246b64a997c0bffd9bb2766655d811) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
60
92
|
|
|
61
93
|
### v6.6.0 (2022-07-09)
|
|
62
94
|
|
|
@@ -343,16 +375,13 @@
|
|
|
343
375
|
#### Pull requests
|
|
344
376
|
|
|
345
377
|
- [#76](https://github.com/Munter/subfont/pull/76) Fix the prettier setup ([Andreas Lind](mailto:andreas.lind@peakon.com))
|
|
378
|
+
- [#75](https://github.com/Munter/subfont/pull/75) Fix omitFallbacks with Google Web Fonts ([Andreas Lind](mailto:andreas.lind@peakon.com))
|
|
346
379
|
|
|
347
380
|
#### Commits to master
|
|
348
381
|
|
|
349
382
|
- [Switch to the official css-font-parser now that bramstein\/css-font-parser\#7 has been merged and released](https://github.com/Munter/subfont/commit/457c7f0e4cef0a8c1bd8f816c23ace64c9987424) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
350
383
|
- [Don't populate source map relations](https://github.com/Munter/subfont/commit/5c07218b6f1dcc6fad88702a3bcb7b33bf9df54e) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
351
384
|
|
|
352
|
-
### v4.1.2 (2020-01-09)
|
|
353
|
-
|
|
354
|
-
- [#75](https://github.com/Munter/subfont/pull/75) Fix omitFallbacks with Google Web Fonts ([Andreas Lind](mailto:andreas.lind@peakon.com))
|
|
355
|
-
|
|
356
385
|
### v4.1.1 (2020-01-04)
|
|
357
386
|
|
|
358
387
|
- [Add regression test](https://github.com/Munter/subfont/commit/46eddce9c09268dbde459b1f98fe5cec9e4c98f5) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
@@ -383,8 +412,7 @@
|
|
|
383
412
|
- [Add vscode debugger launch configuration for the test suite](https://github.com/Munter/subfont/commit/f8f9abc42909c556765555cc49f44eb40a9194db) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
384
413
|
- [Guard against an already detached relation when cleaning up](https://github.com/Munter/subfont/commit/6392fc359222772c9033a58a9020e3b35487d019) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
385
414
|
|
|
386
|
-
### v4.0.3
|
|
387
|
-
|
|
415
|
+
### v4.0.3
|
|
388
416
|
#### Pull requests
|
|
389
417
|
|
|
390
418
|
- [#67](https://github.com/Munter/subfont/pull/67) Only warn about missing fonttools install if we are actually trying t… ([Peter Müller](mailto:munter@fumle.dk))
|
package/lib/subsetFonts.js
CHANGED
|
@@ -1382,9 +1382,11 @@ async function subsetFonts(
|
|
|
1382
1382
|
.split(/\s+/)
|
|
1383
1383
|
.map((token) => normalizeFontPropertyValue('font-weight', token))
|
|
1384
1384
|
.join('_');
|
|
1385
|
-
const fileNamePrefix = `${unquote(
|
|
1385
|
+
const fileNamePrefix = `${unquote(
|
|
1386
|
+
cssFontParser.parseFontFamily(nameProps[0])[0]
|
|
1387
|
+
)
|
|
1386
1388
|
.replace(/__subset$/, '')
|
|
1387
|
-
.replace(/
|
|
1389
|
+
.replace(/[^a-z0-9_-]/gi, '_')}-${fontWeightRangeStr}${
|
|
1388
1390
|
nameProps[2] === 'italic' ? 'i' : ''
|
|
1389
1391
|
}`;
|
|
1390
1392
|
|