subfont 6.12.0 → 6.12.1
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 +6 -0
- package/lib/subsetFonts.js +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
### v6.12.1 (2022-09-11)
|
|
2
|
+
|
|
3
|
+
- [Map font-style: oblique to font-variation-settings: slnt -14](https://github.com/Munter/subfont/commit/ea96284729e0d100fcb87d09c63979641439b169) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
4
|
+
- [Fix typo in test case](https://github.com/Munter/subfont/commit/b07273ff0daff38a23ef9b0ce77d5a114c4e2154) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
5
|
+
- [Improve slnt axis test case with a copy of the Extendomatic font Should be OK according to the license: https:\/\/djr.com\/license\/\#server https:\/\/twitter.com\/djrrb\/status\/1568539078416539654?s=20&t=P3w5SKI\_UHV3zzrBMj47lQ](https://github.com/Munter/subfont/commit/f6692fc3ad17a745bda13d1eb78ccd5fb340b369) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
|
6
|
+
|
|
1
7
|
### v6.12.0 (2022-09-07)
|
|
2
8
|
|
|
3
9
|
- [Refactor repeated code into helper function](https://github.com/Munter/subfont/commit/5335d931957cadc150fed1c5d548ee6b6e245636) ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
|
package/lib/subsetFonts.js
CHANGED
|
@@ -829,8 +829,11 @@ function warnAboutUnusedVariationAxes(
|
|
|
829
829
|
if (fontStyles.has('oblique')) {
|
|
830
830
|
// https://www.w3.org/TR/css-fonts-4/#font-style-prop
|
|
831
831
|
// oblique <angle>?
|
|
832
|
-
//
|
|
833
|
-
|
|
832
|
+
// [...] The lack of an <angle> represents 14deg.
|
|
833
|
+
// And also:
|
|
834
|
+
// Note: the OpenType slnt axis is defined with a positive angle meaning a counter-clockwise slant, the opposite direction to CSS.
|
|
835
|
+
// sThe CSS implementation will take this into account when using variations to produce oblique faces.
|
|
836
|
+
noteUsedValue(fontUrl, 'slnt', -14);
|
|
834
837
|
}
|
|
835
838
|
// If any font-style value except oblique is seen (including normal or italic)
|
|
836
839
|
// we're also utilizing value 0:
|