Merge branch 'bugfix/underlines' of git://github.com/eKoopmans/html2canvas into eKoopmans-bugfix/underlines

This commit is contained in:
Niklas von Hertzen 2017-12-21 23:45:06 +08:00
commit baaf9b0701

View File

@ -250,7 +250,7 @@ export default class CanvasRenderer implements RenderTarget<HTMLCanvasElement> {
const {baseline} = this.options.fontMetrics.getMetrics(font);
this.rectangle(
text.bounds.left,
Math.round(text.bounds.top + baseline),
Math.round(text.bounds.top + text.bounds.height - baseline),
text.bounds.width,
1,
textDecorationColor