From 3fbbd3656f62866e7733c0a1a192b2827f385a23 Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Tue, 8 Sep 2020 08:18:01 -0700 Subject: [PATCH] Update main.js --- data/scripts/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/scripts/main.js b/data/scripts/main.js index 7ca0d7db..06b3fae5 100644 --- a/data/scripts/main.js +++ b/data/scripts/main.js @@ -698,7 +698,7 @@ function writeText(textObjectList, targetContext) { if (wordToWrite != '' || n == splitText.length - 1 || finishLine) { var currentWordWidth = textLineContext.measureText(wordToWrite).width if (currentWordWidth + currentLineWidth > scaleX(textObjectList[i].width) || n == splitText.length - 1 || finishLine) { - if (oneLine && currentWordWidth + currentLineWidth > scaleX(textObjectList[i].width) && textSize > 0) { + if (oneLine && currentWordWidth + currentLineWidth > scaleX(textObjectList[i].width) && textSize > 1) { rewritingLine = true i -= 1 continue outerloop @@ -732,7 +732,7 @@ function writeText(textObjectList, targetContext) { } } if (n == splitText.length - 1) { //Finally, center the paragraph vertically - if (textY + textSize > scaleY(textObjectList[i].height) && !oneLine) { + if (textY + textSize > scaleY(textObjectList[i].height) && !oneLine && textSize > 1) { rewritingLine = true i -= 1 continue outerloop