Branch Coverage

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


line true false branch
88 0 0 if (defined $opts{'-style'} and not defined $opts{'style'})
98 0 0 if ref $class
101 0 0 unless $self->is_obj($pdf)
120 0 0 if ($LLx < $minX)
121 0 0 if ($LLx > $maxX)
122 0 0 if ($URx < $minX)
123 0 0 if ($URx > $maxX)
124 0 0 if ($LLy < $minY)
125 0 0 if ($LLy > $maxY)
126 0 0 if ($URy < $minY)
127 0 0 if ($URy > $maxY)
134 0 0 unless defined $opts{'style'}
142 0 0 if (defined $self->{' data'}{'FONT'})
169 0 0 if ($self->data->{'wx'}{$w->{'NAME'}} > 2500)
172 0 0 if ($self->data->{'wx'}{$w->{'NAME'}} == 0)
179 0 0 unless defined $w->{'hex'}
187 0 0 if ($widths[$w->{'ENCODING'}] < "1.05" * ($bbx[0] + $bbx[2]) * $csizeH)
201 0 0 if ($opts{'style'} eq 'image') { }
208 0 0 if ($y == 0) { }
231 0 0 if ($BBX[1] == 0) { }
248 0 0 unless ($dots[$row][$col])
250 0 0 if ($opts{'style'} eq 'block') { }
296 0 0 unless defined $self->data->{'n2c'}{$self->data->{'char'}[$n] or ".notdef"}
297 0 0 unless defined $self->data->{'n2e'}{$self->data->{'e2n'}[$n] or ".notdef"}
299 0 0 unless defined $self->data->{'n2u'}{$self->data->{'e2n'}[$n] or ".notdef"}
300 0 0 unless defined $self->data->{'n2u'}{$self->data->{'char'}[$n] or ".notdef"}
302 0 0 unless defined $self->data->{'u2c'}{$self->data->{'uni'}[$n]}
303 0 0 unless defined $self->data->{'u2e'}{$self->data->{'e2u'}[$n]}
305 0 0 unless defined $self->data->{'u2n'}{$self->data->{'e2u'}[$n]}
306 0 0 unless defined $self->data->{'u2n'}{$self->data->{'uni'}[$n]}
322 0 0 unless (-e $file)
325 0 0 unless open my $afmf, "<", $file
329 0 0 if (/^STARTCHAR/ .. /^ENDCHAR/) { }
330 0 0 if (/^STARTCHAR\s+(\S+)/) { }
0 0 elsif (/^BITMAP/ .. /^ENDCHAR/) { }
335 0 0 if /^BITMAP/
336 0 0 if (/^ENDCHAR/) { }
351 0 0 if (/^(\S+)\s+(.+)$/)
360 0 0 if (/^(\S+)\s+(.+)$/)
366 0 0 unless (exists $data->{'wx'}{'.notdef'})