#!/usr/bin/perl use strict; use warnings; use CGI; print "content-type: text/html \n\n"; my @family = qw(serif sans-serif cursive fantasy monospace); my @size = qw(xx-small x-small small medium large x-large xx-large); my @weight = qw(normal bold 100 200 300 400 500 600 700 800 900); my @variant = qw(normal small-caps); my @style = qw(normal italic oblique); my $cgi = CGI->new(); my $text_input = $cgi->param('text') || "The quick brown fox jumped over a lazy dog."; print <<"sec1"; Font Test

Font comparisons

sec1 for my $style (@style) { for my $variant (@variant) { for my $weight (@weight) { for my $size (@size) { for my $family (@family) { print qq{

Style: $style; Variant: $variant; Weight: $weight; Size: $size; Family: $family

\n}; print qq{

$text_input

\n}; } } } } } print "";