Skip to content

Commit d023de0

Browse files
committed
Revert "Fix underlines, relative to 'bottom' baseline"
This reverts commit 0c8d38d.
1 parent 0c8d38d commit d023de0

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
@@ -212,7 +212,7 @@ export default class CanvasRenderer implements RenderTarget<HTMLCanvasElement> {
212212
const {baseline} = this.options.fontMetrics.getMetrics(font);
213213
this.rectangle(
214214
text.bounds.left,
215-
Math.round(text.bounds.top + text.bounds.height - baseline),
215+
Math.round(text.bounds.top + baseline),
216216
text.bounds.width,
217217
1,
218218
textDecorationColor

0 commit comments

Comments
 (0)