so every time i make a project, i usually make a custom font drawing function (because yes). but i got sick of having to remake the function over and over, so i decided it was FINALLY time to make an extension!
its pretty simple, define a font then draw it to whatever image you want (such as the bg image or a sprite or even directly to the screen!)
the demo should show you how to use it, its pretty straightforward but if you still need help or dont understand it, please ask me!
there is one known bug, you cant draw text with a white bg and black text, it will turn out all white. now i know how tho fix this, but im kinda burnt out so ill fix it at some point.
when defining a font though, MAKE SURE THE BACKGROUND IS COLOR 15 (black with the default palette) AND THE TEXT IS COLOR 1 (white with the default palette)
UPDATES:
I COMPLETELY FORGOT TO PUT THE LINK TO THE EXTENSION!
so here it is! shrimpcatdev/picture-fonts
also i fixed the bug! now you can do any color combonation!!!
Could you make a block that does this? I tried to draw my own font but it is so time consuming. I usually just use the text sprite extension. Btw what did you do for your function?
I really don’t understand your extension… Basically, I usually create a text sprite, then picture draw text sprite picture at coordinates. Then I delete the text sprite. This allows me to pre draw ui then put multiple bits of text on it. Basically, I want to be able to put text, max colour, and width in, and get an image of the text.
I don’t understand how your extension gets the text, are you using something in built? I looked at the code.