Optimization: don't scale when parameter is 1.0
This commit is contained in:
parent
bd95a191b7
commit
cc9035438a
@ -728,7 +728,8 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
|
|||||||
if (textSelection)
|
if (textSelection)
|
||||||
text.geom = this.getTextGeometry();
|
text.geom = this.getTextGeometry();
|
||||||
|
|
||||||
ctx.scale(fontSizeScale, fontSizeScale);
|
if (fontSizeScale != 1.0)
|
||||||
|
ctx.scale(fontSizeScale, fontSizeScale);
|
||||||
|
|
||||||
var x = 0;
|
var x = 0;
|
||||||
for (var i = 0; i < glyphsLength; ++i) {
|
for (var i = 0; i < glyphsLength; ++i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user