Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php font problem

Status
Not open for further replies.

georgeocrawford

Technical User
Aug 12, 2002
111
GB
Hi,


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
 
Can anyone help on this? I've asked in about 10 forums - I was hoping Tek-Tips might come up trumps again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top