Sign in to follow this  
vman

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

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
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
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

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