]> git.parisson.com Git - pdf.js.git/commitdiff
Add more information about the italic angle
authorVivien Nicolas <21@vingtetun.org>
Thu, 30 Jun 2011 01:27:22 +0000 (03:27 +0200)
committerVivien Nicolas <21@vingtetun.org>
Thu, 30 Jun 2011 01:27:22 +0000 (03:27 +0200)
fonts.js

index a3f270c94d4a627598acdec6f8b3abf63e140cee..a7a2ed147f0eea04ada6ed2ffd972cd92f2c7885 100644 (file)
--- a/fonts.js
+++ b/fonts.js
@@ -887,7 +887,7 @@ var Font = (function () {
               "\x00\x00" + // yMin
               "\x00\x00" + // xMax
               "\x00\x00" + // yMax
-              "\x00\x00" + // macStyle
+              string16(properties.italicAngle ? 1 : 0) + // macStyle
               "\x00\x11" + // lowestRecPPEM
               "\x00\x00" + // fontDirectionHint
               "\x00\x00" + // indexToLocFormat
@@ -906,7 +906,7 @@ var Font = (function () {
                  "\x00\x00" + // minRightSidebearing
                  "\x00\x00" + // xMaxExtent
                  "\x00\x00" + // caretSlopeRise
-                 "\x00\x00" + // caretSlopeRun
+                 string16(properties.italicAngle) + // caretSlopeRun
                  "\x00\x00" + // caretOffset
                  "\x00\x00" + // -reserved-
                  "\x00\x00" + // -reserved-