From 9c17d355cd50a5a66ffb53832af32affbaa3d21b Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Mon, 24 Aug 2020 20:46:17 -0700 Subject: [PATCH] Update main.js --- data/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/scripts/main.js b/data/scripts/main.js index 3b9894a7..9f98a706 100644 --- a/data/scripts/main.js +++ b/data/scripts/main.js @@ -553,7 +553,7 @@ function writeText(textObjectList, targetContext) { } } else if (possibleCodeLower == '/i') { if (textFont == 'mplantin') { - textFontExtension.replace('i', '') + textFontExtension = textFontExtension.replace('i', '') textLineContext.font = fontStyle + textSize + 'px ' + textFont + textFontExtension } else { fontStyle = fontStyle.replace('italic ', '')