Branch Coverage

blib/lib/PDF/Builder/FontManager.pm
Criterion Covered Total %
branch 18 154 11.6


line true false branch
181 0 0 unless (keys %info)
196 0 0 if (defined $info{'font'})
198 0 0 if ($index >= 0) { }
205 0 0 if (defined $info{'serif'})
207 0 0 if ($index >= 0) { }
214 0 0 if (defined $info{'sans-serif'})
216 0 0 if ($index >= 0) { }
223 0 0 if (defined $info{'constant'})
225 0 0 if ($index >= 0) { }
232 0 0 if (defined $info{'script'})
234 0 0 if ($index >= 0) { }
241 0 0 if (defined $info{'symbol'})
243 0 0 if ($index >= 0) { }
506 0 1085 unless (defined $info{'face'})
512 0 2170 if ($_->{'face'} eq $info{'face'})
520 0 7595 if ($_ eq $info{'face'})
527 0 1085 unless (defined $info{'type'})
532 0 0 if ($info{'type'} ne "core" and $info{'type'} ne "ttf" and $info{'type'} ne "type1" and $info{'type'} ne "cjk" and $info{'type'} ne "bdf")
548 0 1085 unless (defined $info{'style'})
552 0 434 if ($info{'style'} ne "serif" and $info{'style'} ne "sans-serif" and $info{'style'} ne "constant" and $info{'style'} ne "script" and $info{'style'} ne "symbol")
561 0 1085 unless (defined $info{'width'})
565 0 1085 if ($info{'width'} ne "proportional" and $info{'width'} ne "constant")
571 0 1085 unless (defined $info{'file'})
581 651 434 if (defined $info{'style'} and $info{'style'} ne "symbol")
585 434 651 if (defined $info{'style'} and $info{'style'} eq "symbol")
589 3038 1302 if (defined $info{'file'}{$file})
595 0 1085 unless ($found)
599 0 1085 if $rc
646 0 217 if ($^O eq "MSWin32")
792 0 0 unless (keys %info)
801 0 0 if (defined $self->{' font-list'}[$index]{'settings'}) { }
823 0 0 if (defined $info{'face'}) { }
826 0 0 if ($info{'face'} eq 'current') { }
0 0 elsif ($info{'face'} eq 'default') { }
0 0 elsif ($info{'face'} eq 'serif') { }
0 0 elsif ($info{'face'} eq 'sans-serif') { }
0 0 elsif ($info{'face'} eq 'constant') { }
0 0 elsif ($info{'face'} eq 'script') { }
0 0 elsif ($info{'face'} eq 'symbol') { }
849 0 0 if (defined $self->{' default-script'}{'face'}) { }
863 0 0 if ($index >= 0) { }
883 0 0 if (defined $info{'italic'})
888 0 0 if (defined $info{'bold'})
896 0 0 if ($style eq 'symbol') { }
899 0 0 if ($current_italic) { }
900 0 0 if ($current_bold) { }
906 0 0 if ($current_bold) { }
915 0 0 unless (defined $self->{' font-list'}[$index]{'file'}{$which})
926 0 0 if (defined $font)
930 0 0 unless (defined $file)
935 0 0 if ($type eq 'core') { }
0 0 elsif ($type eq 'ttf') { }
0 0 elsif ($type eq 'type1') { }
0 0 elsif ($type eq 'cjk') { }
0 0 elsif ($type eq 'bdf') { }
941 0 0 unless (-f $filepath and -r $filepath)
943 0 0 if (defined $font)
952 0 0 if (defined $self->{' font-list'}[$index]{'settings'}{'afmfile'}) { }
0 0 elsif (defined $self->{' font-list'}[$index]{'settings'}{'pfmfile'}) { }
964 0 0 unless (-f $filepath and -r $filepath)
966 0 0 unless (-f $metricf and -r $metricf)
967 0 0 if ($met_type ne "")
971 0 0 if (defined $font)
977 0 0 unless (-f $filepath and -r $filepath)
979 0 0 if (defined $font)
984 0 0 unless (-f $filepath and -r $filepath)
986 0 0 if (defined $font)
993 0 0 if (defined $font) { }
1009 0 0 if ($self->{' font-list'}[$index]{'face'} eq $face)
1021 0 0 if (substr($file, 0, 1) eq "/")
1022 0 0 if (substr($file, 0, 2) eq "./")
1023 0 0 if (substr($file, 0, 3) eq "../")
1024 0 0 if ($file =~ m[^[a-z]:/]i)
1026 0 0 if (substr($file, 0, 4) eq ".../")
1032 0 0 if (substr($out_list[$i], -1, 1) eq '/') { }
1075 0 0 if (defined $self->{' font-list'}[$i]{'entry'}{$key}) { }
1110 0 0 if (defined $self->{' default-script'}{'face'}) { }