Skip to content

Commit 9de040c

Browse files
set max width
long ligatures render wider than the cells
1 parent 50bccb4 commit 9de040c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/renderer/shared/TextureAtlas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ export class TextureAtlas implements ITextureAtlas {
643643

644644
// Draw the character
645645
if (!customGlyph) {
646-
this._tmpCtx.fillText(chars, padding, padding + this._config.deviceCharHeight);
646+
this._tmpCtx.fillText(chars, padding, padding + this._config.deviceCharHeight, allowedWidth);
647647
}
648648

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

0 commit comments

Comments
 (0)