Fix underlines, relative to 'bottom' baseline

This commit is contained in:
Erik Koopmans 2017-12-06 23:49:11 +11:00
parent 2c8c604f9a
commit 0c8d38d9c0
1 changed files with 1 additions and 1 deletions

View File

@ -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