[SDL] Problems with SDL_ttf
Zaka E-Lab
shanatorio at gmail.com
Mon Sep 3 10:36:24 PDT 2007
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.
More information about the SDL
mailing list