Rendering TrueType fonts

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
JoshDB
Posts: 87
Joined: Wed Oct 05, 2005 3:54 am

Rendering TrueType fonts

Post by JoshDB »

Hey guys, coming back for help again ( :

I've successfully made a pretty interactive program in C. It has no real purpose, just a learning ground. Now I've installed Freetype, SDL, SDL_ttf, and have followed the tutorial at http://gpwiki.org/index.php/SDL_ttf:Tut ... _Rendering regarding the loading and rendering of TTF font files.

Now, two things it doesn't tell me:

What lib (if any) do I need to link in the makefile?
What is the "destsurf" in the "drawtext" function.

It might just be me. All this code is in a regular C project. Is this for a SDL-specific file, hence the lack of a destsurf, or should it just be "screen"?

Ugh. I don't know what SDL is ( :
User avatar
JoshDB
Posts: 87
Joined: Wed Oct 05, 2005 3:54 am

Post by JoshDB »

I waited 12 hours for bump =/
BlackPaladin
Posts: 11
Joined: Fri Jan 06, 2006 3:55 am
Location: Portland, Oregon -- USA
Contact:

Post by BlackPaladin »

Search for SDL on google. It's a standardized cross-platform graphics/sound architecture. There are tutorials out there on this.
Unix Junkie
Post Reply