We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d285580 + 1b00060 commit 2cc3b96Copy full SHA for 2cc3b96
src/core/document.js
@@ -901,7 +901,11 @@ class PDFDocument {
901
}
902
const fontFamily = descriptor.get("FontFamily");
903
const fontWeight = descriptor.get("FontWeight");
904
- const italicAngle = descriptor.get("ItalicAngle");
+
905
+ // Angle is expressed in degrees counterclockwise in PDF
906
+ // when it's clockwise in CSS
907
+ // (see https://drafts.csswg.org/css-fonts-4/#valdef-font-style-oblique-angle)
908
+ const italicAngle = -descriptor.get("ItalicAngle");
909
const cssFontInfo = { fontFamily, fontWeight, italicAngle };
910
911
if (!validateCSSFont(cssFontInfo)) {
0 commit comments