Skip to content

Commit

Permalink
Merge branch 'bugfix/underlines' of git://github.com/eKoopmans/html2c…
Browse files Browse the repository at this point in the history
…anvas into eKoopmans-bugfix/underlines
  • Loading branch information
niklasvh committed Dec 21, 2017
2 parents 02de2ee + 0c8d38d commit baaf9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/CanvasRenderer.js
Expand Up @@ -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
Expand Down

0 comments on commit baaf9b0

Please sign in to comment.