This commit is contained in:
Batiste Bieler 2023-06-24 22:21:48 +01:00
parent 6020386bbe
commit cc3ce1ccf0

View File

@ -200,7 +200,7 @@ export class CanvasRenderer extends Renderer {
this.ctx.shadowColor = asString(textShadow.color); this.ctx.shadowColor = asString(textShadow.color);
this.ctx.shadowOffsetX = textShadow.offsetX.number * this.options.scale; this.ctx.shadowOffsetX = textShadow.offsetX.number * this.options.scale;
this.ctx.shadowOffsetY = textShadow.offsetY.number * this.options.scale; this.ctx.shadowOffsetY = textShadow.offsetY.number * this.options.scale;
this.ctx.shadowBlur = textShadow.blur.number; this.ctx.shadowBlur = textShadow.blur.number * this.options.scale;;
this.renderTextWithLetterSpacing(text, styles.letterSpacing, baseline); this.renderTextWithLetterSpacing(text, styles.letterSpacing, baseline);
}); });