SDK/OS 2.6.0 is now available!

Please see the changelog, and download the latest at Develop for Playdate.

Let us know if you run into issues by posting a new thread in SDK Bug Reports!

11 Likes

One bit I wanted to call out from the change log:

  • Added additional width/height, wrap and truncation to Lua drawText()
  • Added C API drawTextInRect()

We've added line wrapping to the core drawText function, which should fix the performance problems some people were seeing using the CoreLibs version. In Lua the playdate.graphics.drawText() function now takes an optional width and height argument after the (x,y) position (or you can pass a playdate.geometry.rect object) and there are wrap mode and text alignment options you can add as well.

And on the C side, there's a new playdate->graphics->drawTextInRect() function to draw multi-line wrapped text.

Let us know if anything isn't working right!

9 Likes