Otherwise the function returns FALSE and prints a message describing what went wrong.
In the case everything went right, a valid font index will be returned and can be used for further purposes. Otherwise the function returns FALSE and prints a message describing what went wrong.