mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix: text-shadow position with baseline (#2576)
This commit is contained in:
parent
e29af58661
commit
439e365ea8
@ -198,7 +198,7 @@ export class CanvasRenderer {
|
||||
this.ctx.shadowOffsetY = textShadow.offsetY.number * this.options.scale;
|
||||
this.ctx.shadowBlur = textShadow.blur.number;
|
||||
|
||||
this.ctx.fillText(text.text, text.bounds.left, text.bounds.top + text.bounds.height);
|
||||
this.renderTextWithLetterSpacing(text, styles.letterSpacing, baseline);
|
||||
});
|
||||
|
||||
this.ctx.shadowColor = '';
|
||||
|
Loading…
Reference in New Issue
Block a user