Joymaker
Joymaker

Reputation: 1418

Where does SDL_TTF look for fonts?

Does TTF_OpenFont have any sort of path or standard install location it looks in, or only in the current working directory?

If the latter – have any conventions been established as to where applications install the TrueType fonts they need? I'm on a Mac, but I'm interested in the answer for Mac and Windows both.

Upvotes: 1

Views: 1903

Answers (1)

aram
aram

Reputation: 1444

TTF_OpenFont doesn't use any standard location to search for a font. You can give it a relative, to where your executable is (relative to the directory it is in, for example you could use chdir) or a full path.

Imo is best for you to ship the fonts you'll be using with your application.

Upvotes: 1

Related Questions