Merge pull request #4350 from Tyriar/dotted

Improve rendering of dotted underlines
This commit is contained in:
Daniel Imms
2022-12-23 14:16:15 -08:00
committed by GitHub
+1 -1
View File
@@ -587,7 +587,7 @@ export class TextureAtlas implements ITextureAtlas {
);
break;
case UnderlineStyle.DOTTED:
this._tmpCtx.setLineDash([this._config.devicePixelRatio * 2, this._config.devicePixelRatio]);
this._tmpCtx.setLineDash([Math.round(lineWidth), Math.round(lineWidth)]);
this._tmpCtx.moveTo(xChLeft, yTop);
this._tmpCtx.lineTo(xChRight, yTop);
break;