Problems with rendering text

Started by laxeot, February 27, 2015, 12:02:20

Previous topic - Next topic

laxeot

For hours, I've been trying to render text on the screen with my own custom .ttf font (I also have a bitmap version). I've gone through Slick2D and other libraries/classes and I'm starting to get frustrated. How do YOU guys render text easily?

Edit: Just wanna clarify that my game IS 2D and not 3D.

Cornix

It is planned that LWJGL will get font support in the future.
But at the moment I use AWT's font rendering into a BufferedImage and then I use this buffered image to create an openGL Texture.

laxeot

Quote from: Cornix on February 27, 2015, 16:45:09
It is planned that LWJGL will get font support in the future.
But at the moment I use AWT's font rendering into a BufferedImage and then I use this buffered image to create an openGL Texture.
How would you go about doing something like this?

Cornix

Perhaps you should ask more specific questions if you want to get an answer. Which part are you having problems with?