Skip to content

Commit

Permalink
Fix underlines, relative to 'bottom' baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
eKoopmans committed Dec 6, 2017
1 parent 2c8c604 commit 0c8d38d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/CanvasRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,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 0c8d38d

Please sign in to comment.