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

This reverts commit ead8f1d3eea4f81f6dbf9195e7ea05a66e51792b.
This commit is contained in:
MoyuScript 2018-01-26 18:10:15 +11:00
parent ead8f1d3ee
commit e5dbbaf4d2

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 + text.bounds.height - baseline),
Math.round(text.bounds.top + baseline),
text.bounds.width,
1,
textDecorationColor