mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
italics fix
This commit is contained in:
@@ -454,8 +454,10 @@ function writeText(textObjectList, targetContext) {
|
|||||||
fontStyle += 'italic '
|
fontStyle += 'italic '
|
||||||
textLineContext.font = fontStyle + textSize + 'px ' + textFont
|
textLineContext.font = fontStyle + textSize + 'px ' + textFont
|
||||||
} else if (possibleCodeLower == '/i') {
|
} else if (possibleCodeLower == '/i') {
|
||||||
fontStyle.replace('italic ', '')
|
console.log(fontStyle)
|
||||||
|
fontStyle = fontStyle.replace('italic ', '')
|
||||||
textLineContext.font = fontStyle + textSize + 'px ' + textFont
|
textLineContext.font = fontStyle + textSize + 'px ' + textFont
|
||||||
|
console.log(textLineContext.font)
|
||||||
} else if (possibleCodeLower.includes('fontsize')) {
|
} else if (possibleCodeLower.includes('fontsize')) {
|
||||||
textSize += parseInt(possibleCodeLower.slice(8, possibleCodeLower.length))
|
textSize += parseInt(possibleCodeLower.slice(8, possibleCodeLower.length))
|
||||||
textLineContext.font = fontStyle + textSize + 'px ' + textFont
|
textLineContext.font = fontStyle + textSize + 'px ' + textFont
|
||||||
|
Reference in New Issue
Block a user