SDL_ttf - Font directory/Where do fonts go?
问题 I've been noodling around with SDL and OpenGL (in C++), and decided to get some text into my game. I've followed a few tutorials, but I always get the same error: "Couldn't find .ttf" I'm sure it's been asked before, but where should you place the font, and what should you write in the TTF_OpenFont's first parameter? Here's the TTF part so far. if (TTF_Init() != 0) { cerr << "TTF_Init() Failed: " << TTF_GetError() << endl; SDL_Quit(); exit(1); } TTF_Font *font; font = TTF_OpenFont("FreeSans