Button builder \n"; copy ($userfile,"button.png"); # print $userfile; # exit; } if (!$text) $text="ABCD"; if (!$size) $size=25; if (!$color) $color="ffffff"; if ($test_font){ print "Now displaying font: $test_font
"; $tmp=str_replace(" ","+",$test_font); $tmp2=urlencode($text); print ""; } /* print $test_font; if (!$text) $text="Testing: Sxooter"; if (!$font) $font="acme_explosive/acme.TTF"; */ # Here we find all the fonts installed in the font_path directory and make a list of them. # Note that ttf fonts are represented by a directory here.. $font_path="/usr/share/fonts/ttf/"; $dp=opendir($font_path); while (false!=($file = readdir($dp))){ if ($file!="." && $file!=".."){ if (is_dir($font_path.$file)){ $font_name[]=$file; } } } closedir($dp); # Next we look in each directory fir a file, each one being a font, and build a list of those fonts # stored by font directory name. foreach($font_name as $font){ $dp=opendir($font_path.$font); while (false!=($file = readdir($dp))){ if ($file!="." && $file!=".."){ if (eregi("ttf$",$file)){ $faces[$font][]=$file; } } } } if (!$test_font) $test_font=$font_name[0]."/".$faces[$font_faces[$font_name[0]]][0]; ?>

Pick a font:
Size:
Color (6 digit hex 000000 to ffffff or white, black, blue etc...):
Execute:

Upload a new button background image:
Send this file: