forumnz Posted February 9, 2011 Share Posted February 9, 2011 Hello I am using a script I found on the internet to create PNG images of text into a font on the server. My problem is that I can't seem to make the font bold. Can someone please let me know how to do this? I would really appreciate the help. Here is a snippet of the code that I believe needs modifying: <?php $background_rgb = hex_to_rgb($background_color) ; $font_rgb = hex_to_rgb($font_color) ; $dip = get_dip($font_file,$font_size) ; $box = @ImageTTFBBox($font_size,0,$font_file,$text) ; $image = @ImageCreate(abs($box[2]-$box[0]),abs($box[5]-$dip)) ; ?> Many thanks. Quote Link to comment 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.