diff --git a/src/core/text/Text.js b/src/core/text/Text.js index 9813324..5e7bc0b 100644 --- a/src/core/text/Text.js +++ b/src/core/text/Text.js @@ -190,10 +190,11 @@ if (style.dropShadow) { + this.context.shadowBlur = style.dropShadowBlur; + if (style.dropShadowBlur > 0) { this.context.shadowColor = style.dropShadowColor; - this.context.shadowBlur = style.dropShadowBlur; } else { @@ -241,6 +242,9 @@ // set canvas text styles this.context.fillStyle = this._generateFillStyle(style, lines); + // remove blur if set for the drop shadow + this.context.shadowBlur = 0; + // draw lines line by line for (let i = 0; i < lines.length; i++) {