font: aggregate coverage data from hash entries
[sheet.git] / tools / mkfontinfo
index 95330255001f3a1e9061c37688cb89b2f52dc5e6..da6fd67f681a57420b95a8a1e912fda27ea9d3f5 100755 (executable)
@@ -28,7 +28,8 @@ for my $fontfile (glob 'data/font/*'.$incsuffix) {
                (map { "($_)" } $year || ()),
        );
        push @fontlist, $fontmeta;
-       $cover{$fontid} = { map { (chr $_ => 1) } @fontrange };
+       my $fontrange = $fontmeta->{cover};
+       $cover{$fontid} = { map { (chr $_ => 1) } $fontmeta->{cover}->@* };
 }
 
 my %charlist;