Bug #17666: TTF-Fonts does not work
| From: | ulf at ecora dot de | Date: | Sun, 09 Jun 2002 12:55:56 +0000 |
| Subject: | Bug #17666: TTF-Fonts does not work | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-9926@lists.php.net to get a copy of this message | ||
From: ulf@ecora.de
Operating system: WinXP/Suse Linux
PHP version: 4.2.0
PHP Bug Type: GD related
Bug description: TTF-Fonts does not work
TTF-Fonts don't work on WinXP with PHP 4.2.1 and GD 2.0.1 and on Suse Linux
with PHP 4.2.0 and GD 2.0.1
On every use with imagettftext or imagettfbbox:
Could not find/open font in e:\try\bild.php4 on line x
$im = imagecreate(420,315);
$grey = imagecolorallocate($im, 60, 60, 60);
imagettftext($im, 80, 0, 20, 50, $grey, 'font.ttf', 'test');
imagejpeg($im);
font.ttf is in the same directory like the PHP-Script and an absolute path
will also not work.
--
Edit bug report at http://bugs.php.net/?id=17666&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17666&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17666&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17666&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17666&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17666&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17666&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17666&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17666&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17666&r=globals