How do FONTS / DrawText work?
Monkey Forums/Monkey Beginners/How do FONTS / DrawText work?
| ||
I am using the mojo (1) module. Would want to know how you can use fonts to draw text into your game screen, like for scores etc. I know there is DrawText but there is not a lot I could understand about how to get Fonts. Also, in the SetFont reference, there is an undernote that reads: Note: The font functionality in mojo is very limited and intended mainly for debugging purposes This scares me. How can I go without fonts? Please throw some light on this. |
| ||
Well, after browsing around a bit, I found that there are Bitmap Font Generators available online. Do I have to use them? And even if I use them, I just get a strip of letters and numbers. How do I import them using MOJO (1)? Please elaborate... |
| ||
You could try studying the example here: bananas->beaker->angelfont_example. |
| ||
Thanks Skid! i will look into it. |
| ||
Can I use the "angelfont.monkey" module as it is with any downloaded font (.png + .fnt)? I mean is that the official way for drawing text? |
| ||
There is no official way, angelfont is a common solution for those happy to use bitmap fonts. There is also a ttf engine written in monkeyx which google will find if you search monkeyx ttf. |