Skip to content

Commit

Permalink
set max width
Browse files Browse the repository at this point in the history
long ligatures render wider than the cells
  • Loading branch information
LabhanshAgrawal committed Feb 23, 2023
1 parent 50bccb4 commit 9de040c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/renderer/shared/TextureAtlas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ export class TextureAtlas implements ITextureAtlas {

// Draw the character
if (!customGlyph) {
this._tmpCtx.fillText(chars, padding, padding + this._config.deviceCharHeight);
this._tmpCtx.fillText(chars, padding, padding + this._config.deviceCharHeight, allowedWidth);
}

// If this charcater is underscore and beyond the cell bounds, shift it up until it is visible
Expand Down

0 comments on commit 9de040c

Please sign in to comment.