scale line width; set min font size to 8
This commit is contained in:
parent
cc9035438a
commit
99d71cc713
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user