]> git.parisson.com Git - pdf.js.git/commitdiff
scale line width; set min font size to 8
authornotmasteryet <async.processingjs@yahoo.com>
Tue, 14 Feb 2012 02:45:51 +0000 (20:45 -0600)
committernotmasteryet <async.processingjs@yahoo.com>
Tue, 14 Feb 2012 02:45:51 +0000 (20:45 -0600)
src/canvas.js

index 0ec92d9cfb82eb3a2dc3dbfe65989bcf00381883..1a2ff3951030be298047a1ba64fc0f034554070e 100644 (file)
@@ -18,7 +18,7 @@ var TextRenderingMode = {
 };
 
 // Minimal font size that would be used during canvas fillText operations.
-var MIN_FONT_SIZE = 5;
+var MIN_FONT_SIZE = 8;
 
 var CanvasExtraState = (function CanvasExtraStateClosure() {
   function CanvasExtraState(old) {
@@ -721,7 +721,7 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
         if (scale == 0 || lineWidth == 0)
           lineWidth = this.getSinglePixelWidth();
         else
-          lineWidth /= scale;
+          lineWidth /= scale * fontSizeScale;
 
         ctx.lineWidth = lineWidth;