Jump to content

imagettftext in PHP 4.4.4


amites

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/83884-imagettftext-in-php-444/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.