I’m having lots of font/text problems after updating to 1.2, my fonts/text (that were working perfectly in 1.1) are now all messed-up, it seems that they are not getting updated with my screen with gfx.sprite.update() at least that what seem to be happening. I didn’t see anything in the update notes that should have caused this problem. in another one of my programs my font is just sort of messed-up now.
uggggh I really screwed up here. When I moved the code for dealing with newlines down to the lower-level code I goofed up the return value that tells which rows were updated (instead of [start,end], I did [start,length]). As a result, the sprite display list wasn’t getting marked dirty in the right place, which kept the background image from redrawing when the text went away. And on the game over screen the text was drawing, but the display driver was pushing the wrong lines to the screen.
I expect we’ll have a 1.2.2 out pretty soon. But there IS an easy workaround: Instead of using gfx.setFont(font) then gfx.drawText(...), you can have the font draw the text directly with font:drawText(...). The only difference between the two is gfx.drawText can do bold and italics with * and _ markdown-style formatting, and font:drawText can’t.