Re: Bug #12927 Updated: TTF functions not working on Windows 2000
| From: | Pete Nelson | Date: | Thu, 23 Aug 2001 17:19:37 +0000 |
| Subject: | Re: Bug #12927 Updated: TTF functions not working on Windows 2000 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64182@lists.php.net to get a copy of this message | ||
Thanks for your help. The 4.0.7-dev-20010816 version of ImageTTFText(...) does work about 50% of
the time, the rest I get annoying messages from Windows about errors with Apache.exe, followed by
'connection reset' messages in the browser. I added the 'ImageDestroy(...)'
method to my code, but it still crashes every other time I view the image.
I'm sure you'll have it fixed soon enough. And it all seems to work fine on linux . . .
Bug Database wrote:
> ID: 12927
> Updated by: sniper
> Reported By: pete.nelson@serversolved.com
> Old Status: Open
> Status: Closed
> Bug Type: GD related
> Operating System: Windows 2000
> PHP Version: 4.0.6
> New Comment:
>
> This is fixed in CVS. You can download a dev build
> from http://www.php4win.com/ if you want it now, or
> wait for next release of PHP.
>
> --Jani
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2001-08-23 11:55:31] pete.nelson@serversolved.com
>
> I've placed my script on my server here:
> http://www.serversolved.com/gif.php.txt
>
> I'm using the binary zip package (4.0.6) from us4.php.net
>
> I've tried several options to try and get fonts to load via ImageTTF* functions, but to no
> avail. I tried "C:\winnt\fonts\...", "C:\\winnt\\fonts\\...",
> "C:/winnt/fonts/..."; I even tried copying the 'fonts' dir under my
> DocumentRoot, and tried "fonts/...", "/fonts/...", "./fonts/..." and
> even "http://localhost/fonts/...". None of these options
> worked.
>
> In the final version of my script, I even used 'file_exists' to test the font file
> (which exists), and it still is unable to load. Is it possible that the gd library was compiled
> wrong on the windows binary?
>
> ------------------------------------------------------------------------
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
> http://bugs.php.net/?id=12927&edit=2
--
Pete Nelson
Web Developer / Systems Administrator / Linux Fan
http://www.serversolved.com/
mailto:pete.nelson@serversolved.com