addFont('./fonts/SFTransRoboticsExtended.ttf'); $img->addFont('./fonts/verdanab.ttf'); $img->addFont('./fonts/arial.ttf'); $img->addFont('./fonts/arialbd.ttf'); $image_width = 240; $image_height = 75; $font_size = 35; $font_depth = 8; //this is the size of shadow behind the character creating the 3d effect. //could not find a better name. if($img->create($image_width, $image_height)){ //The method call order: // fill() must be called first and render() last; //applyDots(), applayText, applayGrid may be optionaly called in any order // to acheive interesting results. //fill the background color. $img->fill(); //Add dots to the background $img->applyDots(); //Add the text. $img->applyText($text, $font_size, $font_depth); //Apply the Grid. $img->applyGrid(); //Add more dots $img->applyDots(); //Output the image. $img->render(); } ?>