Skip to content

Commit 5673487

Browse files
committed
Include right part of wide char in underline gap
Fixes #4096
1 parent 72f1d10 commit 5673487

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
@@ -627,7 +627,7 @@ export class TextureAtlas implements ITextureAtlas {
627627
// outline around the whole glyph, as well as additional pixels in the glyph at the top
628628
// which would increase GPU memory demands
629629
const clipRegion = new Path2D();
630-
clipRegion.rect(xLeft, yTop - Math.ceil(lineWidth / 2), this._config.deviceCellWidth, yBot - yTop + Math.ceil(lineWidth / 2));
630+
clipRegion.rect(xLeft, yTop - Math.ceil(lineWidth / 2), this._config.deviceCellWidth * chWidth, yBot - yTop + Math.ceil(lineWidth / 2));
631631
this._tmpCtx.clip(clipRegion);
632632
this._tmpCtx.lineWidth = this._config.devicePixelRatio * 3;
633633
this._tmpCtx.strokeStyle = backgroundColor.css;

0 commit comments

Comments
 (0)