Hi all! I have tried to include SDL_TTF in my project, linking seems to work fine and so does initializing TTF, TTF_Init() != -1. But no matter what kind of search path I use in TTF_OpenFont(<path>, <size>); it returns NULL. It fails to open my font.
I have put my font in the debug directory of my project and tried font path "arial","arial.ttf",".\\arial.ttf",".\\arial","/arial.ttf" and so on. What could be the problem, if it is not the path? Could I have failed installing freetype? I just don't receive any other errors from TTF other than the failed to load font.
Thanks in advance!
Solved it, was supposed to but it in the src folder, not debug. Will this be different depending on if I compile it as a debug version or release version? Anyway, finally rid of this problem! :)
[Edited by - Mordrian on January 16, 2010 6:30:26 AM]