Hello! I've just updated to 1.12.0 and I'm running into a bad issue with drawText in the C API. I have a bitmap containing multiple screens worth of data that I draw into once and scroll as an audio sequence advances. This is mostly text data with some lines drawn for borders.
In 1.11.1, this works fine. This is about halfway scrolled through the bitmap.
I can only assume that there is some sort of clipping occurring trying to optimize when text would normally be rendered offscreen, but this after I have pushed the context into the bitmap so I do want to draw it beyond normal screenbounds.
The fix probably won't make it into 1.12.1 since the update's already through the pipeline, so I found a workaround: instead of font:drawText(...) do:
gfx:setFont(font)
gfx.drawText(...)
The difference is it uses the "styled" text drawing function where _ toggles italics and * toggles bold. The styled version doesn't have the dumb broken bounds check..
Is this something I can access within the C API? The only drawText function I appear to have access to is the one in the graphics library, which is the one I've been using already.
@dave : has this fix made it into the latest version of the API yet? I'm on 1.12.3, and I think I've just run into the same bug. I'm also using the C API so don't have access to your workaround (unless you can access that styled-text drawing function directly from C?).
Ah, boo. I submitted the fix for that in June but it looks like it didn't get merged to main until a week ago. It'll be in 1.13. Sorry for the hassle.
And nope, the C API can only call the buggy text drawing variant since we haven't implemented font families there. Been waiting to see if anyone requests it..