How to draw text ?

Started by Gnurfos, December 12, 2010, 03:30:10 PM

Previous topic - Next topic

Gnurfos

Hi,

Is there a simple way to draw a text ?

Thanks

EgonOlsen

If the text is static, use a texture and blit it using the methods in FrameBuffer. If it's dynamic, you can either use the same approach but blit single characters or simply use raft's classes for this (which is what i recommend), that can be found here: http://www.jpct.net/forum2/index.php/topic,1074.0.html

Gnurfos

Thanks for your reply.
However, I am working on the Android version (and posted on the wrong forum, hum). Will this still work ? I see it uses awt.
Are there plans to include such a feature in the main engine ?

EgonOlsen

It's available for Android too. Just have a look in the Android section...it can be found there somewhere.

Gnurfos

Thanks I found it.
And it works great. Why don't you include it in the main engine ? This seems like a basic feature.