From 99d71cc713bdd56566ea8640cd2bcbc8ca7cde96 Mon Sep 17 00:00:00 2001 From: notmasteryet Date: Mon, 13 Feb 2012 20:45:51 -0600 Subject: [PATCH] scale line width; set min font size to 8 --- src/canvas.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/canvas.js b/src/canvas.js index 0ec92d9cf..1a2ff3951 100644 --- a/src/canvas.js +++ b/src/canvas.js @@ -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;