make a bunch of progress

This commit is contained in:
meganrogge
2021-08-11 14:14:17 -07:00
parent 12980fbe0c
commit db845a6f24
3 changed files with 156 additions and 133 deletions
+2 -1
View File
@@ -422,7 +422,8 @@ export abstract class BaseRenderLayer implements IRenderLayer {
// increase # of pixels when font size incremented by 10
this._ctx.lineWidth = Math.max(Math.floor(this._optionsService.options.fontSize / 10), 1);
const horizontalCenter = Math.round(this._scaledCellWidth / 2);
draw(this._ctx, char, xOffset, yOffset - verticalCenter, this._scaledCellWidth, this._scaledCellHeight);
// yOffset - verticalCenter
draw(this._ctx, char, xOffset, y * this._scaledCellHeight + this._scaledCharTop, this._scaledCellWidth, this._scaledCellHeight);
return true;