prov:value
| - Have a problem with imagettfbbox cutting off the hang of letters such as 'g' or 'j'??After days trying to figure this thing out, I finally cracked it: $size = imagettfbbox($s,0,$font,$text); $dx=abs($size[0])+abs($size[2]); $dy=abs($size[1])+abs($size[7]); ImageTTFText($im, $s, 0, $dx-abs($size[0]), $dy-abs($size[1]), $black, $font, $text);The key is the abs commands - you must account for the neg
|