Jump to content
  • Advertisement
Sign in to follow this  
ChaosX2

OpenGL Simple Font API

This topic is 4751 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!