pvtpyro Posted August 29, 2006 Share Posted August 29, 2006 Here's what I've got going so far. If you have gd library you can test it. How would I go about loading true type fonts? I've gone through the tutorials here but they explain different types of font. when i simply try to change to tff it doesn't work.I would deeply appreciate any help :)[code]<?phpheader("Content-type: image/gif");$image = imagecreate( 300, 150 );imagecolorallocate($image,100, 149, 237);$border = imagecolorallocate($image, 0, 0, 0);$string = '(C) blah blah';$white = imagecolorallocate($image, 255, 255, 255);$black = imagecolorallocate($image, 0, 0, 0);imagestring($image, $font, 10, 10, "Hello", $black);$len = strlen($string);for ($i=1; $i<=$len; $i++) { imagecharup($image, $font_size, 5, imagesy($image)-($i*imagefontwidth($font_size)), $string, $black); $string = substr($string,1);}imagegif($image);imagedestroy($image);?>[/code] Link to comment https://forums.phpfreaks.com/topic/19035-loading-truetype-font/ Share on other sites More sharing options...
pvtpyro Posted August 29, 2006 Author Share Posted August 29, 2006 ah nevermind. figured it out. I'm a dork. haha Link to comment https://forums.phpfreaks.com/topic/19035-loading-truetype-font/#findComment-82317 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.