georgeocrawford
Technical User
Hi,
I get this error when trying to use a font with the imagePStext function:
I presume this is because the font file is in the wrong format?
Can you please help me!
I am using Jaguar on the Mac, with the latest Apache, PHP 4.3.0 and all the necessary libraries (GD, jpeg, png, freetype, ttf, etc.).
I have read that the font must have been created on the same system as the server - is that the problem?
I'm willing to use imagePStext and/or imageTTFtext, and I'm willing to convert my fonts into any kind of format, but I don't know which combination to use!
I have tried imagePStext with loads of different fonts, some system fonts, some I created (on a Mac), some off the internet, in bitmap, ttf, ps, pfb formats.
Can someone please tell me which font type (and file extension) will work on my server, and which php function will be able to read the file.
Do I need a windows bitmap, windows postscript, windows truetype, or any of the mac equivalents?
Thanks
I get this error when trying to use a font with the imagePStext function:
Code:
Warning: imageloadfont() [function.imageloadfont]: End of file while reading header in /Library/Apache2/htdocs/test.php on line 3
Warning: imagepstext(): supplied argument is not a valid Type 1 font resource in /Library/Apache2/htdocs/test.php on line 3
I presume this is because the font file is in the wrong format?
Can you please help me!
I am using Jaguar on the Mac, with the latest Apache, PHP 4.3.0 and all the necessary libraries (GD, jpeg, png, freetype, ttf, etc.).
I have read that the font must have been created on the same system as the server - is that the problem?
I'm willing to use imagePStext and/or imageTTFtext, and I'm willing to convert my fonts into any kind of format, but I don't know which combination to use!
I have tried imagePStext with loads of different fonts, some system fonts, some I created (on a Mac), some off the internet, in bitmap, ttf, ps, pfb formats.
Can someone please tell me which font type (and file extension) will work on my server, and which php function will be able to read the file.
Do I need a windows bitmap, windows postscript, windows truetype, or any of the mac equivalents?
Thanks