diff --git a/src/shapes/itext.class.js b/src/shapes/itext.class.js index 583f8281..b5edd508 100644 --- a/src/shapes/itext.class.js +++ b/src/shapes/itext.class.js @@ -657,6 +657,9 @@ charWidth = this._applyCharStylesGetWidth(ctx, _char, lineIndex, i, decl || {}); textDecoration = textDecoration || this.textDecoration; + if (decl && decl.textBackgroundColor) { + this._removeShadow(ctx); + } shouldFill && ctx.fillText(_char, left, top); shouldStroke && ctx.strokeText(_char, left, top);