|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-02-15 09:37 UTC] mrobinso@php.net
[2002-02-15 09:50 UTC] reweiner at yahoo dot com
[2002-02-21 17:25 UTC] taco at sun dot com
[2002-02-24 19:12 UTC] matt at zevi dot net
[2002-02-27 12:15 UTC] reweiner at yahoo dot com
[2002-03-12 16:26 UTC] matt at zevi dot net
[2002-03-13 07:22 UTC] reweiner at yahoo dot com
[2002-03-21 02:01 UTC] matt at zevi dot net
[2002-03-21 02:42 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 02:00:02 2025 UTC |
The following code works in 4.0.6 but doesn't in 4.1.1 Both are compiled with the same flags: --with-freetype --with-gd --with-ttf For 4.1.1 I added: --enable-gd-native-ttf --with-freetype-dir=/usr ( you need a font to test this. In this case - shelley.ttf ) <?php Header ("Content-type: image/png"); $im = imagecreate (400, 30); $black = ImageColorAllocate ($im, 0, 0, 0); $white = ImageColorAllocate ($im, 255, 255, 255); ImageTTFText ($im, 20, 0, 10, 20, $white, "shelley.ttf", "Testing... Omega: Ω"); ImagePNG($im); ImageDestroy ($im); ?>