Skip to content

Commit

Permalink
avoid charspacing shortcut (#4594)
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur authored Dec 30, 2017
1 parent 4846789 commit df48f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shapes/text.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit df48f43

Please sign in to comment.