title: SDL - TTF - font not loading
body: <p>I am having Problem loading SDL_TTF font.</p>
  <p>my program is so big, so there's a piece of code which is creating problem.</p>
  <pre><code>TTF_Font *font = NULL;
  SDL_Color textColor = {255, 255, 255};
  
  if(SDL_Init() == -1 || TTF_Init() == -1)
     return 0;
  
  font = TTF_OpenFont(&quot;calibri.ttf&quot;, 28);
  if(font == NULL)
     return 0;
  </code></pre>
  <p>Now please tell me why the funtion TTF_OpenFont is not working.
  font remains NULL after the funtion and the program exits...</p>
  <p>EDIT:
  I cannot cout or printf TTF_GetError() but i used breakpoints to see which function is not working correctly and found the function TTF_OpenFont() returning null every time.
  (BTW if there any way to print the Erroe on screen the tell please).
  TTF_Init() is working correctly.
  FOR PEOPLE WHO ARE ASKING TO INSTALL SDL_TTF SEPARATELY:
  I have written the link below from which i am learning SDL in first tutorial it guides how to install SDL and integrate it which project, In 3rd lesson comes the SDL_IMAGE extension library which is to be needed to install separately (which i did and used all image functions easily), In 7th lesson it didn't teach how to install SDL_TFF rather says to do the same steps as for SDL_IMAGE but this time for SDL_TTf so i downloaded SDL_TTF and intalled and you know the rest after....</p>
  <p>Windows 8.1, CodeBlocks, MinGW32, SDL1
  Here's the link i am learning SDL from
  <a href="http://lazyfoo.net/SDL_tutorials/" rel="nofollow noreferrer">SDL Tutorials</a>
  This is how i installed the Extension Library(SDL_TTF)
  <a href="http://lazyfoo.net/SDL_tutorials/lesson03/windows/codeblocks/index.php" rel="nofollow noreferrer">Setting Up Extention Library</a></p>