X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/fc554ef8ffaab2f0a3daed89ae1a18d9c0e117af..c6a420bb406b6f91a43932de3843e2824b0cc53d:/font.plp diff --git a/font.plp b/font.plp index cb6cd35..f17eab5 100644 --- a/font.plp +++ b/font.plp @@ -14,7 +14,7 @@ Html({ }); if ($font) { - my ($fontmeta, @cover) = eval { Data("data/font/$font") } + my $fontmeta = eval { Data("data/font/$font") } or Abort("Unknown font $font", '404 font not found', ref $@ && $@->[1]); my $map = eval { @@ -59,7 +59,7 @@ if ($font) { printf("

Version %s released %s contains %d glyphs.", !!$_->[2] && qq( title="revision $_->[2]"), $_->[1], $_->[0], - scalar @cover, + scalar @{ $fontmeta->{cover} }, ) for [ grep { $_ } ($fontmeta->{date} || '?') =~ s/T.*//r, @@ -86,7 +86,7 @@ if ($font) { require Shiar_Sheet::FormatChar; my $glyphs = Shiar_Sheet::FormatChar->new; - my %cover = map { ($_ => 1) } @cover; # lookup map + my %cover = map { ($_ => 1) } @{ $fontmeta->{cover} }; # lookup map say <<"EOT";