Skip to content

Commit e6c44af

Browse files
authored
Merge pull request niklasvh#1417 from eKoopmans/bugfix/underlines
Revert "Fix underlines, relative to 'bottom' baseline"
2 parents 0f01810 + d023de0 commit e6c44af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/CanvasRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export default class CanvasRenderer implements RenderTarget<HTMLCanvasElement> {
250250
const {baseline} = this.options.fontMetrics.getMetrics(font);
251251
this.rectangle(
252252
text.bounds.left,
253-
Math.round(text.bounds.top + text.bounds.height - baseline),
253+
Math.round(text.bounds.top + baseline),
254254
text.bounds.width,
255255
1,
256256
textDecorationColor

0 commit comments

Comments
 (0)