avoid charspacing shortcut (#4594)

This commit is contained in:
Andrea Bogazzi 2017-12-30 11:57:38 +01:00 committed by GitHub
parent 4846789bf0
commit df48f43f14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;