[SDL] Problems with SDL_ttf
CptAJ
antonioetayo at gmail.com
Tue Sep 4 17:46:08 PDT 2007
Zaka E-Lab <shanatorio <at> gmail.com> writes:
>
> I have proved your code.
>
> I have changed two things the first is at compilation:
> g++ -o test test.cc -lSDL -lSDL_ttf (it's not necessary to use freetype).
>
> The other one is when the program loads the font:
>
> TTF_OpenFont(other path,28) (this is not important)
>
> It goes like you expect, the program load and prints "Text goes here" in
> a white background.
>
> Be sure to have the font in the correct place, and if its in the same
> dir, you can try to change the path to "./whatever.ttf", maybe this goes.
>
> PD:Sorry for my poor English.
>
> Zaka.
>
We figured out the what they problem was in the SDL irc channel. Turns out
TTF_RenderText_Solid is not supported on linux. I had to use
TTF_RenderText_Shaded.
Shame though since according to the docs solid is faster =/
More information about the SDL
mailing list