Sign in to follow this  
ChaosX2

OpenGL Simple Font API

Recommended Posts

I'm trying to find a simple font API to use in a cross platform game engine. I just need to be able to print text out to the consol and hud display. Right now I'm using GLFW for the windowing and input system. I've tried glFont but the fonts it generates are terrible. I've also tried ftgl but I haven't been able to get it to compile with GLFW. Can you recommend any simple font api for opengl that is also cross platform? Thanks.

Share this post


Link to post
Share on other sites
If you want to make your programme cross-platfrom,the only possible approuch is to write your own font api,based on texture-mapped fonts.For more details,check NeHe's lesson 17

Share this post


Link to post
Share on other sites
You should be able to get FTGL to work with GLFW, IIRC.
What kind of problems are you having with the two?

Share this post


Link to post
Share on other sites
I recently released something you might want to have a look at: GLFTFont, you'll need to link my class as well as freetype2. The example application even comes with a GLFW-based sample. You can also feel free to contact me with any questions/problems.

Share this post


Link to post
Share on other sites
Quote:
Original post by mhamlin
You should be able to get FTGL to work with GLFW, IIRC.
What kind of problems are you having with the two?


I'm having no problems getting GLFW working. Just getting FTGL, I was just wondering if it worth the effort to get working. Right now most of my problems with FTGL are just compile problems. I wish I had the code setup in front of me so I can display the problems I am having.

Share this post


Link to post
Share on other sites
Quote:
Original post by cozman
I recently released something you might want to have a look at: GLFTFont, you'll need to link my class as well as freetype2. The example application even comes with a GLFW-based sample. You can also feel free to contact me with any questions/problems.


Interesting suggestion. I'd prefer to stick with stable releases, but I'm willing to give anything a try. Thanks.

Share this post


Link to post
Share on other sites
Quote:
Original post by DarkMessiaH
If you want to make your programme cross-platfrom,the only possible approuch is to write your own font api,based on texture-mapped fonts.For more details,check NeHe's lesson 17


That would be my last option. I want to get a basic engine up and running ASAP. After I get it going I'm going to replace some API's with my own.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this