Branch Coverage

blib/lib/PDF/Builder/Resource/Font/Postscript.pm
Criterion Covered Total %
branch 0 146 0.0


line true false branch
85 0 0 if (defined $opts{'-encode'} and not defined $opts{'encode'})
86 0 0 if (defined $opts{'-afmfile'} and not defined $opts{'afmfile'})
87 0 0 if (defined $opts{'-afm_file'} and not defined $opts{'afm_file'})
88 0 0 if (defined $opts{'-pfmfile'} and not defined $opts{'pfmfile'})
89 0 0 if (defined $opts{'-pfm_file'} and not defined $opts{'pfm_file'})
90 0 0 if (defined $opts{'-xfmfile'} and not defined $opts{'xfmfile'})
91 0 0 if (defined $opts{'-xfm_file'} and not defined $opts{'xfm_file'})
92 0 0 if (defined $opts{'-pdfname'} and not defined $opts{'pdfname'})
93 0 0 if (defined $opts{'-nocomps'} and not defined $opts{'nocomps'})
94 0 0 if (defined $opts{'-dokern'} and not defined $opts{'dokern'})
95 0 0 if (defined $opts{'-kerning'} and not defined $opts{'kerning'})
101 0 0 if (defined $opts{'kerning'} and not defined $opts{'dokern'})
102 0 0 if (defined $opts{'afm_file'} and not defined $opts{'afmfile'})
103 0 0 if (defined $opts{'pfm_file'} and not defined $opts{'pfmfile'})
104 0 0 if (defined $opts{'xfm_file'} and not defined $opts{'xfmfile'})
106 0 0 if (defined $opts{'afmfile'}) { }
0 0 elsif (defined $opts{'pfmfile'}) { }
0 0 elsif (defined $opts{'xfmfile'}) { }
116 0 0 if ref $class
119 0 0 unless $self->is_obj($pdf)
122 0 0 if ($opts{'pdfname'})
128 0 0 if (-f $psfile) { }
141 0 0 if (defined $pdf)
148 0 0 if (defined $opts{'encode'} and $opts{'encode'} =~ /^utf/i)
154 0 0 if $opts{'nocomps'}
155 0 0 if $opts{'dokern'}
164 0 0 unless -f $file
171 0 0 if ($file =~ /\.pfb$/i) { }
0 0 elsif ($file =~ /\.t1$/i) { }
177 0 0 unless open my $inf, "<", $file
182 0 0 if ($lines[0] == 128 and $lines[1] == 1) { }
0 0 elsif ($line eq '%!' and $type eq 'pfa') { }
0 0 elsif ($line eq '%!' and $type eq 't1') { }
190 0 0 if ($lines[0] == 128 and $lines[1] == 2) { }
200 0 0 if ($lines[0] == 128 and $lines[1] == 1) { }
217 0 0 if (not $l1) { }
0 0 elsif (not $l2) { }
219 0 0 if ($line =~ /eexec$/)
225 0 0 if ($line =~ /^0+$/) { }
250 0 0 if ($pos > 0)
264 0 0 if ($pos > 0)
275 0 0 if (length $line == 0)
307 0 0 unless (-e $file)
310 0 0 unless open my $afmf, "<", $file
313 0 0 if (/^StartCharMetrics/ .. /^EndCharMetrics/) { }
0 0 elsif (/^StartKernData/ .. /^EndKernData/) { }
0 0 elsif (/^StartComposites/ .. /^EndComposites/) { }
315 0 0 unless $_ =~ /^CH?\s/
324 0 0 ($data->{'maxwidth'} || 0) < $wx ? :
327 0 0 if ($ch > 0)
330 0 0 $data->{'lastchar'} < $ch ? :
331 0 0 $data->{'firstchar'} > $ch ? :
335 0 0 if ($_ =~ /^KPX\s+(\S+)\s+(\S+)\s+(\S+)\s*$/i)
340 0 0 if ($_ =~ /^CC\s+(\S+)\s+(\S+)\s+;/i)
352 0 0 if $_ =~ /^EndFontMetrics/
353 0 0 if (/(^\w+)\s+(.*)/) { }
356 0 0 if (defined $data->{$key}) { }
368 0 0 unless (exists $data->{'wx'}{'.notdef'})
379 0 0 if (defined $data->{'fullname'}) { }
383 0 0 if $data->{'italicangle'} < 0
384 0 0 if $data->{'italicangle'} > 0
391 0 0 if $data->{'italicangle'} < 0
392 0 0 if $data->{'italicangle'} > 0
416 0 0 unless (-e $file)
430 0 0 unless open $fh, "<", $file
583 0 0 if $df{'PitchAndFamily'} & 1 || $df{'PitchAndFamily'} & 8 and not $df{'PitchAndFamily'} & 2
585 0 0 if $df{'PitchAndFamily'} & 16 and not $df{'PitchAndFamily'} & 32
587 0 0 if $df{'PitchAndFamily'} & 80
589 0 0 if $df{'PitchAndFamily'} & 64
591 0 0 unless $df{'PitchAndFamily'} & 80
593 0 0 if $df{'Italic'}
603 0 0 unless nameByUni($_)
627 0 0 unless -f $xfmfile