DrawText() background color

Monkey Forums/Monkey Programming/DrawText() background color

PoliteProgrammer(Posted 2013) [#1]
This is just a very simple question, but one that I couldn't find answered in the forums; when using Monkey's unmodified DrawText() function, it draws a black rectangle before drawing the text on top of it. How do I control the colour of the background rectangle or make it draw the text with a transparent background, like BlitzMax functionality? Thanks!


Halfdan(Posted 2013) [#2]
The Text functions of Mojo are limited, you should only use them for debug purposes. There are some text modules available, Diddy has one; but I like this one


Jesse(Posted 2013) [#3]
Drag and drop this font below into your monkey module/mojo/data folder to replace the original this one has a transparent background.
V

^
otherwise you are going to have to create or use a module for handling fonts on your own.

can you see it? it's there.


therevills(Posted 2013) [#4]
DrawText uses an image to draw the characters, it doesnt use any fonts. The current image strip has a black blackground.

Be careful of using too much text on your screens as every character will be an extra image that needs to be drawn.