expeditions

This commit is contained in:
Kyle
2020-05-29 17:08:53 -07:00
parent 60f6d56fa8
commit 0ef070844a
17 changed files with 81 additions and 2 deletions

View File

@@ -451,10 +451,8 @@ function writeText(textObjectList, targetContext) {
fontStyle += 'italic '
textLineContext.font = fontStyle + textSize + 'px ' + textFont
} else if (possibleCodeLower == '/i') {
console.log(fontStyle)
fontStyle = fontStyle.replace('italic ', '')
textLineContext.font = fontStyle + textSize + 'px ' + textFont
console.log(textLineContext.font)
} else if (possibleCodeLower.includes('fontsize')) {
textSize += parseInt(possibleCodeLower.slice(8, possibleCodeLower.length))
textLineContext.font = fontStyle + textSize + 'px ' + textFont