amites Posted December 31, 2007 Share Posted December 31, 2007 Hello, I am having some difficulty with imagettftext I have it called multiple times in a script and for the most part it is working properly, where I am having trouble is when it is called in a function to write text at a 270 degree angle (bottom to top) the code where it should do this is: $chars=explode(" ", $text); reset($chars); while (list($n, $v)=each($chars)){ if (trim($v)){ $inf=explode(":", $v); $fontsize=$scale*($inf[1]/1.; $fontheight=$total_y-($fontsize/2.7)+2; @imagettftext($im, $fontsize, 0, $space['left']+($scale*$inf[0])+2, $fontheight, $col_text, $font_loc, $inf[2]); } } when I run this on PHP 5.X it works perfectly, when I run it on PHP 4.X all the horizontal text shows up but this part doesn't the function is a modified of PHP-Barcode (http://www.ashberg.de/php-barcode/) if that helps at all... any ideas on how to get this working, or work around it? Quote Link to comment https://forums.phpfreaks.com/topic/83884-imagettftext-in-php-444/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.