};
// Minimal font size that would be used during canvas fillText operations.
-var MIN_FONT_SIZE = 8;
+var MIN_FONT_SIZE = 2;
var CanvasExtraState = (function CanvasExtraStateClosure() {
function CanvasExtraState(old) {
if (scale == 0 || lineWidth == 0)
lineWidth = this.getSinglePixelWidth();
else
- lineWidth /= scale * fontSizeScale;
-
- ctx.lineWidth = lineWidth;
+ lineWidth /= scale;
if (textSelection)
text.geom = this.getTextGeometry();
- if (fontSizeScale != 1.0)
+ if (fontSizeScale != 1.0) {
ctx.scale(fontSizeScale, fontSizeScale);
+ lineWidth /= fontSizeScale;
+ }
+
+ ctx.lineWidth = lineWidth;
var x = 0;
for (var i = 0; i < glyphsLength; ++i) {