]> git.parisson.com Git - pdf.js.git/commitdiff
Correct stroke width for text; convert intel-load test to eq-test
authornotmasteryet <async.processingjs@yahoo.com>
Thu, 22 Dec 2011 23:43:14 +0000 (17:43 -0600)
committernotmasteryet <async.processingjs@yahoo.com>
Thu, 22 Dec 2011 23:43:14 +0000 (17:43 -0600)
src/canvas.js
test/test_manifest.json

index cd49c88b16159bbbaf0989924084052cb4d280fe..00858c93712f59c915c4e33b0b30a5e1272a788d 100644 (file)
@@ -672,6 +672,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
         ctx.translate(current.x, current.y);
 
         ctx.scale(textHScale, 1);
+        ctx.lineWidth /= current.textMatrix[0];
 
         if (textSelection) {
           this.save();
@@ -708,6 +709,8 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
       } else {
         ctx.save();
         this.applyTextTransforms();
+        ctx.lineWidth /= current.textMatrix[0] * fontMatrix[0];
+
         if (textSelection)
           text.geom = this.getTextGeometry();
 
index 5b88b3136e81046ce71e53f2f182b16c74e1dd90..5a1efd75d4a8cd7c203a8e48a506dfd78cc651a5 100644 (file)
        "rounds": 1,
        "type": "load"
     },
-    {  "id": "intelisa-load",
+    {  "id": "intelisa-eq",
        "file": "pdfs/intelisa.pdf",
        "md5": "f5712097d29287a97f1278839814f682",
        "link": true,
+       "pageLimit": 100,
        "rounds": 1,
-       "type": "load"
+       "type": "eq"
     },
     {  "id": "pdfspec-load",
        "file": "pdfs/pdf.pdf",