Otherwise the function returns FALSE and prints a message describing what went wrong, which you cannot read directly, while the output type is image.
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.