From d7754a402e726c15275c3580a053cb9a51ca6f87 Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Thu, 22 Dec 2011 17:43:14 -0600 Subject: [PATCH] Correct stroke width for text; convert intel-load test to eq-test --- src/canvas.js | 3 +++ test/test_manifest.json | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/canvas.js b/src/canvas.js index cd49c88b1..00858c937 100644 --- a/src/canvas.js +++ b/src/canvas.js @@ -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(); diff --git a/test/test_manifest.json b/test/test_manifest.json index 5b88b3136..5a1efd75d 100644 --- a/test/test_manifest.json +++ b/test/test_manifest.json @@ -17,12 +17,13 @@ "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",