• Advertisement
Sign in to follow this  

[SDL] SDL_TTF, font won't load, OSX 10.4 [SOLVED]

This topic is 2929 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement