TOIlet
The TOIlet project attempts to create a free replacement for the FIGlet utility. TOIlet stands for “The
Other Implementation’s letters”, coined after FIGlet’s “Frank, Ian and
Glen’s letters”.
TOIlet is in its very early development phase. It uses the powerful
libcucul library to achieve various text-based effects. TOIlet
implements or plans to implement the following features:
- The ability to load FIGlet fonts
- Support for Unicode input and output
- Support for colour output
- Support for various output formats: HTML, IRC, ANSI...
TOIlet also aims for full FIGlet compatibility. It is currently able
to load FIGlet fonts and perform horizontal smushing.
Live test
$submit = $_POST['submit'];
$text = substr(stripslashes($_POST['text']), 0, 1024);
$font = $_POST['font'];
$fontlist = array('emboss' => 'Emboss',
'emboss2' => 'Emboss 2',
'future' => 'Future',
'smblock' => 'Small Block',
'smbraille' => 'Small Braille',
'circle' => 'Circle',
'term' => 'Terminal');
if(!isset($fontlist[$font])) $font = 'smblock';
$filter = $_POST['filter'];
$filterlist = array('""' => 'No filter',
'flip' => 'Flip',
'flop' => 'Flop',
'rotate' => 'Rotate');
if(!isset($filterlist[$filter])) $filter = '""'; ?>
if($submit) { ?>
exec('toilet -f '.$font.' -F '.$filter.' '.escapeshellarg($text),
&$result);
foreach($result as $line)
echo htmlspecialchars($line)."\n";
?>
} ?>
Download
The latest TOIlet version is toilet-0.1.tar.gz.
Screenshot