From 893c0d8730b1ccefa8fbaf0339a75d5fae8c207d Mon Sep 17 00:00:00 2001 From: acer Date: Sat, 28 Nov 2020 23:45:27 -0500 Subject: [PATCH] Fix stroke width shouldnt be affected by strikethrough --- src/js/tools/text.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/tools/text.js b/src/js/tools/text.js index 210d4db..995a178 100644 --- a/src/js/tools/text.js +++ b/src/js/tools/text.js @@ -1735,6 +1735,7 @@ class Text_editor_class { ctx.strokeStyle = strokeStyle; ctx.fillText(letter, letterDrawX, letterDrawY); if (stroke_size) { + ctx.lineWidth = stroke_size; ctx.strokeText(letter, letterDrawX, letterDrawY); } if (strikethrough) {