sdl-2sdl-ttf

where to load arial.ttf font and any other font file from a trusted source


How can I load an arial.ttf file? I am using sdl_ttf.h for a project and since sdl_ttf only provides functions to open ttf files and doesn't come with font file preinstalled it is showing error that it is not able to open arial.ttf.

So I asked tabnine and it said that you have to load it externally and then add it in your working directory but it gave the link to Microsoft site for loading it, but i don't find any direct option for loading it there. I think it wants me to license. Is there any other trusted site or way of loading it?


Solution

  • you can also try https://www.dafont.com/ it's a well-known font marketplace/download site. Most of the fonts there are free, but make sure to read the descriptions to see if they are free for commercial use.