Canvas renderer underline style

This commit is contained in:
Daniel Imms
2022-07-23 08:58:10 -07:00
parent baa8a1e6ec
commit 1d9b4d4778
2 changed files with 70 additions and 2 deletions
+5
View File
@@ -264,12 +264,17 @@ export class TextRenderLayer extends BaseRenderLayer {
if (cell.isUnderline()) {
switch (cell.extended.underlineStyle) {
case UnderlineStyle.DOUBLE:
this._fillBottomLineAtCells(x, y, cell.getWidth(), -window.devicePixelRatio);
this._fillBottomLineAtCells(x, y, cell.getWidth(), window.devicePixelRatio);
break;
case UnderlineStyle.CURLY:
this._curlyUnderlineAtCell(x, y, cell.getWidth());
break;
case UnderlineStyle.DOTTED:
this._dottedUnderlineAtCell(x, y, cell.getWidth());
break;
case UnderlineStyle.DASHED:
this._dashedUnderlineAtCell(x, y, cell.getWidth());
break;
case UnderlineStyle.SINGLE:
default: