28800 && !preg_match("@\.htaccess|index\.ttf@i", $file, $x) ) { unlink("temp_fonts/$file"); } # sweeps out any files that don't belong 33 if ( !preg_match("@(.htaccess|index|\.ttf)$@i", $file, $x) ) { unlink("temp_fonts/$file"); } } } closedir($directory); ################################## End Sweeper if ( $_GET[display_font] ) { $_SESSION[font] = $_GET[display_font]; header("location:$self"); exit; } # is font submitted? if ( $new_font = trim($_GET[new_font]) ) { # does font start with http:// and end in .ttf? if ( preg_match( "@^http://.*\.ttf$@i", "$new_font", $match ) ) { # get file name $name = explode( "/", $new_font ); $name = array_pop($name); # replace invalid characters $name = preg_replace( "@[^\w\.]@i", "_", $name); # try to copy font if ( @copy( $new_font, "temp_fonts/$name") ) { $_SESSION[sucess] = "$name has been uploaded"; # save settings $_SESSION[font] = "temp_fonts/$name"; header("location:$self"); exit; } else { $_SESSION[error] = "Could not upload $new_font.
Must start with http:// and end in .ttf"; header("location:$self"); exit; } } else { $_SESSION[error] = "$new_font is not a font."; header("location:$self"); exit; } } ?> <? echo "$h1: $h2"; ?>

"; echo "$_SESSION[error]"; $_SESSION[error] = NULL; echo ""; } ?>






Sample Font
"; $src = "fonts.php?font=$_SESSION[font]&display=Display"; echo "
"; echo ""; } ?>
  1. Enter a True Type Font.
  2. Click Upload Font
  3. The characters of your font will be displayed below the forms.
  4. If you want to save the image, click it to get the URL for transloading.
  5. Use the Sample Font form to view other fonts on this tool.
  6. Create or upload an image.
  7. Click Annotate
  8. The font that you uploaded will be on the menu available for annotating.
  9. The font will remain on this tool for about 8 hours. During that time, you and anyone else can use it for annotation without having to upload it.