From df48f43f142f62464ece71b50e7e836a7406c5b6 Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Sat, 30 Dec 2017 11:57:38 +0100 Subject: [PATCH] avoid charspacing shortcut (#4594) --- src/shapes/text.class.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shapes/text.class.js b/src/shapes/text.class.js index e48ca747ca0..2b23be81961 100644 --- a/src/shapes/text.class.js +++ b/src/shapes/text.class.js @@ -851,7 +851,7 @@ charBox, boxWidth = 0, timeToRender, - shortCut = !isJustify && this.isEmptyStyles(lineIndex); + shortCut = !isJustify && this.charSpacing === 0 && this.isEmptyStyles(lineIndex); ctx.save(); top -= lineHeight * this._fontSizeFraction / this.lineHeight;