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. Quote 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); Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.