[SDL] Border around text with TTF_RenderText
voidstar
voidstar at tin.it
Fri Jun 8 06:57:00 PDT 2007
In my program I'm using this to write text:
SDL_Color clrWhite = { 255,255,255, 0 };
SDL_Color clrBlack = { 0, 0, 0, 0 };
...
TTF_RenderText_Shaded(font, "Hello", clrWhite, clrBlack);
Is it possible to have a black (for example) border around each letter?
Also, is it possible to set "transparent" as background color for the text?
To have transparent color as background I could simply use TTF_RenderText_Solid,
but using this function the text is not smooth.
More information about the SDL
mailing list