Merge pull request #4352 from Tyriar/4096
Include right part of wide char in underline gap
This commit is contained in:
@@ -627,7 +627,7 @@ export class TextureAtlas implements ITextureAtlas {
|
|||||||
// outline around the whole glyph, as well as additional pixels in the glyph at the top
|
// outline around the whole glyph, as well as additional pixels in the glyph at the top
|
||||||
// which would increase GPU memory demands
|
// which would increase GPU memory demands
|
||||||
const clipRegion = new Path2D();
|
const clipRegion = new Path2D();
|
||||||
clipRegion.rect(xLeft, yTop - Math.ceil(lineWidth / 2), this._config.deviceCellWidth, yBot - yTop + Math.ceil(lineWidth / 2));
|
clipRegion.rect(xLeft, yTop - Math.ceil(lineWidth / 2), this._config.deviceCellWidth * chWidth, yBot - yTop + Math.ceil(lineWidth / 2));
|
||||||
this._tmpCtx.clip(clipRegion);
|
this._tmpCtx.clip(clipRegion);
|
||||||
this._tmpCtx.lineWidth = this._config.devicePixelRatio * 3;
|
this._tmpCtx.lineWidth = this._config.devicePixelRatio * 3;
|
||||||
this._tmpCtx.strokeStyle = backgroundColor.css;
|
this._tmpCtx.strokeStyle = backgroundColor.css;
|
||||||
|
|||||||
Reference in New Issue
Block a user