Branch Coverage

blib/lib/PDF/Builder/FontManager.pm
Criterion Covered Total %
branch 16 156 10.2


line true false branch
192 0 0 unless (keys %info)
207 0 0 if (defined $info{'font'})
209 0 0 if ($index >= 0) { }
216 0 0 if (defined $info{'serif'})
218 0 0 if ($index >= 0) { }
225 0 0 if (defined $info{'sans-serif'})
227 0 0 if ($index >= 0) { }
234 0 0 if (defined $info{'constant'})
236 0 0 if ($index >= 0) { }
243 0 0 if (defined $info{'script'})
245 0 0 if ($index >= 0) { }
252 0 0 if (defined $info{'symbol'})
254 0 0 if ($index >= 0) { }
560 0 2340 unless (defined $info{'face'})
566 0 10530 if ($_->{'face'} eq $info{'face'})
581 0 2340 unless (defined $info{'type'})
586 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" and not $info{'type'} eq '?' && $info{'face'} eq '-external-')
603 0 2340 unless (defined $info{'style'})
607 0 936 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" and not $info{'style'} eq '?' && $info{'face'} eq '-external-')
617 0 2340 unless (defined $info{'width'})
621 0 234 if ($info{'width'} ne "proportional" and $info{'width'} ne "constant" and not $info{'width'} eq '?' && $info{'face'} eq '-external-')
628 0 2340 unless (defined $info{'file'})
638 1404 936 if (defined $info{'style'} and $info{'style'} ne "symbol")
642 936 1404 if (defined $info{'style'} and $info{'style'} eq "symbol")
646 6552 2808 if (defined $info{'file'}{$file})
652 0 2340 unless ($found)
656 0 2340 if $rc
869 0 0 unless (keys %info)
878 0 0 if (defined $self->{' font-list'}[$index]{'settings'}) { }
900 0 0 if (defined $info{'face'}) { }
903 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') { }
926 0 0 if (defined $self->{' default-script'}{'face'}) { }
940 0 0 if ($index >= 0) { }
960 0 0 if (defined $info{'italic'})
965 0 0 if (defined $info{'bold'})
973 0 0 if ($style eq 'symbol') { }
976 0 0 if ($current_italic) { }
977 0 0 if ($current_bold) { }
983 0 0 if ($current_bold) { }
992 0 0 unless (defined $self->{' font-list'}[$index]{'file'}{$which})
1003 0 0 if (defined $font)
1007 0 0 unless (defined $file)
1012 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') { }
1017 0 0 if (ref $file eq 'Font::TTF::Font') { }
1024 0 0 unless (-f $filepath and -r $filepath)
1026 0 0 if (defined $font)
1036 0 0 if (defined $self->{' font-list'}[$index]{'settings'}{'afmfile'}) { }
0 0 elsif (defined $self->{' font-list'}[$index]{'settings'}{'pfmfile'}) { }
1048 0 0 unless (-f $filepath and -r $filepath)
1050 0 0 unless (-f $metricf and -r $metricf)
1051 0 0 if ($met_type ne "")
1055 0 0 if (defined $font)
1061 0 0 unless (-f $filepath and -r $filepath)
1063 0 0 if (defined $font)
1068 0 0 unless (-f $filepath and -r $filepath)
1070 0 0 if (defined $font)
1077 0 0 if (defined $font) { }
1093 0 0 if ($self->{' font-list'}[$index]{'face'} eq $face)
1105 0 0 if (substr($file, 0, 1) eq "/")
1106 0 0 if (substr($file, 0, 2) eq "./")
1107 0 0 if (substr($file, 0, 3) eq "../")
1108 0 0 if ($file =~ m[^[a-z]:/]i)
1110 0 0 if (substr($file, 0, 4) eq ".../")
1116 0 0 if (substr($out_list[$i], -1, 1) eq '/') { }
1155 0 0 unless (defined $text->{' font'})
1164 0 0 if ($index == -1)
1231 0 0 if (defined $self->{' font-list'}[$i]{'entry'}{$key}) { }
1266 0 0 if (defined $self->{' default-script'}{'face'}) { }