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, which you cannot read directly, while the output type is image.
Note: This function is only available if PHP is compiled using --enable-t1lib.
See also imagepsfreefont().