scale line width; set min font size to 8

This commit is contained in:
notmasteryet 2012-02-13 20:45:51 -06:00
parent cc9035438a
commit 99d71cc713

View 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;