Merge pull request #4305 from Tyriar/4221

Fix line height and letter spacing on canvas renderer
This commit is contained in:
Daniel Imms
2022-12-11 11:54:57 -08:00
committed by GitHub
@@ -392,8 +392,8 @@ export abstract class BaseRenderLayer extends Disposable implements IRenderLayer
glyph.texturePosition.y,
glyph.size.x,
glyph.size.y,
x * this._deviceCellWidth - glyph.offset.x,
y * this._deviceCellHeight - glyph.offset.y,
x * this._deviceCellWidth + this._deviceCharLeft - glyph.offset.x,
y * this._deviceCellHeight + this._deviceCharTop - glyph.offset.y,
glyph.size.x,
glyph.size.y
);