Talk:SDL ttf:Tutorials:Basic Font Rendering
From GDWiki
Contents |
[edit] Every single artsy font that you find isn't suited for use in a game.
Did you mean:
"Not every single artsy font that you'll find is suited for use in a game."
or could you have meant
"Not a single artsy font that you'll find is suited for use in a game."
At the moment it could mean either. Dejvid 19:27, 11 October 2005 (EDT)
[edit] blitting
Could somebody please add how to get the font onto the screen? Sorry I didn't do it myself, but i hardly know what i'm doing.
This is the code-fragment i missed here:
SDL_Rect rcDest = { 10, 10, 10, 10 }; SDL_BlitSurface(text, NULL, screen, &rcDest); SDL_FreeSurface(text)
After reading this article i tried to add the font directly to the "screen = SDL_SetVideoMode(..."-surface.
[edit] destsurf?
"destsurf is a pointer to the destination surface we want to render to" destsurf does not exist. please check this..
[edit] typedef enum
what do you think about this?
typedef enum textquality {solid, shaded, blended} textquality ;

