Jump to content
  • Advertisement
Sign in to follow this  
vman

[[SDL]] - Print text without using BMP font

This topic is 4417 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

Is there any way to print some text on the screen without using bitmap fonts?? Something like this : Text_function(int x,int y,const string text_str)

Share this post


Link to post
Share on other sites
Advertisement
Google SDL_font. It's a seperate library that allows you to use .ttf fonts to write font. It's noticeably slower than bitmap fonts, but only so if you draw it every frame, so just be careful to only draw text when it's updated. Or,you can use it to make a bitmap font version of the .ttf file.

Share this post


Link to post
Share on other sites
You did? Wow, becuase I put the wrong name in my post. It's actually SDL_ttf.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
http://www.libsdl.org/projects/SDL_ttf/

And a simple tutorial on its usage:
http://lazyfooproductions.com/SDL_tutorials/lesson07/preview.php

Share this post


Link to post
Share on other sites
Quote:
Original post by Ezbez
You did? Wow, becuase I put the wrong name in my post. It's actually SDL_ttf.


Yeah , after searching on google i found this :
"http://lazyfooproductions.com/SDL_tutorials/lesson07/preview.php"
wich i didnt noticed , because im reading only the tutorials i need(load bmp,play snd,move sprites etc).

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!