Calling the following TTF_OpenFont function, after installing the SDL_ttf of course, always fails.
int IsEverythingOK = TTF_Init();
if (IsEverythingOK != -1)
{
font=TTF_OpenFont ("Arial.ttf", 10);// fails here
}
This is a common font and everyone should have it installed. I have also tried the following path:
"library/fonts/Arial.ttf"
Does anyone know why? The error code is "Couldn't open Arial.ttf".
Thanks ahead.
int IsEverythingOK = TTF_Init();
if (IsEverythingOK != -1)
{
font=TTF_OpenFont ("Arial.ttf", 10);// fails here
}
This is a common font and everyone should have it installed. I have also tried the following path:
"library/fonts/Arial.ttf"
Does anyone know why? The error code is "Couldn't open Arial.ttf".
Thanks ahead.