I'm having a super strange problem when concatenating strings that contain the ™ character. I'm iterating through words of a string and inserting a new line \n when it gets too long. If the ™ is present in the string before the line break, it renders one invalid character and one misplaced characters. For example:
a test string: "™ 1test 2test 3test 4test 5test 6test 7test 8verylongtestword"
is changed to: "™ 1test 2test 3test 4test 5test 6test 7test\n8verylongtestword"
and rendered as:
Sure! I'm measuring pixel length instead of character count because I think my font isn't monospaced. So get the length I'm using playdate.graphics.getTextSize(string)
both "™ 1test" and "A 1test" have a length of 51. ". 1test" has a length of 43.