Revert "Fix underlines, relative to 'bottom' baseline"

This reverts commit 0c8d38d9c0.
This commit is contained in:
Erik Koopmans 2018-01-26 18:10:15 +11:00
parent 0c8d38d9c0
commit d023de0b99

View File

@ -212,7 +212,7 @@ export default class CanvasRenderer implements RenderTarget<HTMLCanvasElement> {
const {baseline} = this.options.fontMetrics.getMetrics(font); const {baseline} = this.options.fontMetrics.getMetrics(font);
this.rectangle( this.rectangle(
text.bounds.left, text.bounds.left,
Math.round(text.bounds.top + text.bounds.height - baseline), Math.round(text.bounds.top + baseline),
text.bounds.width, text.bounds.width,
1, 1,
textDecorationColor textDecorationColor