Subject: | Font::TTF::Coverage divide by zero error, if font has unknown blocks |
Date: | Fri, 3 May 2013 00:37:25 -0700 (PDT) |
To: | bug-Font-TTF [...] rt.cpan.org |
From: | Chief Mike Kouklis <mkouklis [...] yahoo.com> |
Fedora-kernel 3.8.9-200.fc18_x86_64
perl -v = v5.16.3 built for x86_64-Linux-thread-multi
Symbola -version 7.08, April-2013
$ ttfcoverage /usr/share/fonts/gdouros-symbola/Symbola.ttf
Alchemical Symbols: 128/128 (100.00%)
...
Miscellaneous Technical: 256/256 (100.00%)
Musical Symbols: 220/256 (85.94%)
Illegal division by zero at /usr/bin/ttfcoverage line 42.
Error is likely due to this font containing some blocks newer than were assigned in Unicode 6.0.0
and it also assigns some characters to reserved code points & UCN proposals for Unicode 7.*
Please add an escape subroutine(s) to allow for both the following errors;
"less than 0.00%" and ">100%"
if
{ Unicode block not found }
then
{ block-coverage = "unknown-&#percent;" }
else
{ Unicode block-size is less than code points in font }
then
{ block-coverage = "&#gt;100&#percent;" }