php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15913 imagettftext will not work
Submitted: 2002-03-06 15:30 UTC Modified: 2002-06-07 07:40 UTC
Votes:3
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:3 (100.0%)
From: shakad at yahoo dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.1.1 OS: Windows2000
Private report: No CVE-ID: None
 [2002-03-06 15:30 UTC] shakad at yahoo dot com
imagettftext does not work when using php_gd2.dll with PHP 4.1.1.

The function works fine when using gd_dll with PHP4.1.1.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-11 19:33 UTC] sam at samandkristen dot com
I get strange errors like the following:

PHP Warning:  ?/? in c:\myfiles\websites\skin\functions.php on line 88
PHP Warning:  ?/? in c:\myfiles\websites\skin\functions.php on line 79
PHP Warning:  h/? in c:\myfiles\websites\skin\functions.php on line 79

when trying to call:

ImageTTFText ($im, 13, 0, 12, 14, $nav_text_off, $navFontPath, $navText);

where $navFontPath is:

$navFontPath = "/skin/fonts/".$navFont.".ttf";

Where /skin is in my webroot. Please help!!!

I am running Apache on Win2000 with PHP 4.1.1 and php_gd2.dll
 [2002-03-13 05:02 UTC] apz at iname dot com
Tghis describes the same bug as I mentioned in Bug #14876...
 [2002-04-16 07:12 UTC] Jouser at attbi dot com
I think this might be why ImageTTFtext from the Image Functions does not
work when using GD 2.0.0 or higher (php_gd2.dll). If you use php_gd.dll this
function works but the GD library doesn't support true color support. If you
want true color support you have to use php_gd2.dll but then this function
doesnt work. Anyone experiencing the same problem? Could anyone recompile
the php_gd2.dll with Freetype and see if this is the problem?


Does anyone know if the same person who compiled php_gd.dll also
compiled php_gd2.dll?

I think the problem might be that whoever compiled the php_gd2.dll that
ships with PHP forgot to compile FreeType library while compiling GD.
This is only a guess because I heard someone say that ImageTTFtext works
on unix machines which leads me to believe this is the problem. I would
test it myself but I don't know how to compile the file :-(
 [2002-06-07 07:40 UTC] edink@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC