Skip to content

Commit

Permalink
Merge pull request #1417 from eKoopmans/bugfix/underlines
Browse files Browse the repository at this point in the history
Revert "Fix underlines, relative to 'bottom' baseline"
  • Loading branch information
niklasvh committed Feb 15, 2018
2 parents 0f01810 + d023de0 commit e6c44af
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 @@ -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 + text.bounds.height - baseline),
Math.round(text.bounds.top + baseline),
text.bounds.width,
1,
textDecorationColor
Expand Down

0 comments on commit e6c44af

Please sign in to comment.