mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix underlines, relative to 'bottom' baseline
This commit is contained in:
parent
2c8c604f9a
commit
0c8d38d9c0
@ -212,7 +212,7 @@ export default class CanvasRenderer implements RenderTarget<HTMLCanvasElement> {
|
|||||||
const {baseline} = this.options.fontMetrics.getMetrics(font);
|
const {baseline} = this.options.fontMetrics.getMetrics(font);
|
||||||
this.rectangle(
|
this.rectangle(
|
||||||
text.bounds.left,
|
text.bounds.left,
|
||||||
Math.round(text.bounds.top + baseline),
|
Math.round(text.bounds.top + text.bounds.height - baseline),
|
||||||
text.bounds.width,
|
text.bounds.width,
|
||||||
1,
|
1,
|
||||||
textDecorationColor
|
textDecorationColor
|
||||||
|
Loading…
Reference in New Issue
Block a user