Irresistable Posted January 3, 2010 Share Posted January 3, 2010 imagestring ($img_handle, 5, 20, 6, $sum, $color); How do I make it so the text is bolder, but not actually bigger? This then gets converted into an image too. Link to comment https://forums.phpfreaks.com/topic/187064-how-to-make-the-text-bolder-in-imagestring/ Share on other sites More sharing options...
MadTechie Posted January 4, 2010 Share Posted January 4, 2010 use imagettftext with a bold font would be the best route, i guess you could do this, but its not very pretty header('Content-type: image/png'); $img_handle = imagecreatetruecolor(400, 30); $color = imagecolorallocate($img_handle, 255, 0, 0); $sum = 'Testing...'; $_x = array(1, 0, 1, 0, -1, -1, 1, 0, -1); $_y = array(0, -1, -1, 0, 0, -1, 1, 1, 1); for($n=0;$n<=8;$n++){ imagestring ($img_handle, 20, $x_cord+$_x[$n], $y_cord+$_y[$n], $sum, $color); } imagepng($img_handle); imagedestroy($img_handle); Link to comment https://forums.phpfreaks.com/topic/187064-how-to-make-the-text-bolder-in-imagestring/#findComment-987858 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.