Branch Coverage

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


line true false branch
83 0 0 if (defined $opts{'-style'} and not defined $opts{'style'})
93 0 0 if ref $class
96 0 0 unless $self->is_obj($pdf)
115 0 0 if ($LLx < $minX)
116 0 0 if ($LLx > $maxX)
117 0 0 if ($URx < $minX)
118 0 0 if ($URx > $maxX)
119 0 0 if ($LLy < $minY)
120 0 0 if ($LLy > $maxY)
121 0 0 if ($URy < $minY)
122 0 0 if ($URy > $maxY)
129 0 0 unless defined $opts{'style'}
137 0 0 if (defined $self->{' data'}{'FONT'})
164 0 0 if ($self->data->{'wx'}{$w->{'NAME'}} > 2500)
167 0 0 if ($self->data->{'wx'}{$w->{'NAME'}} == 0)
174 0 0 unless defined $w->{'hex'}
182 0 0 if ($widths[$w->{'ENCODING'}] < "1.05" * ($bbx[0] + $bbx[2]) * $csizeH)
196 0 0 if ($opts{'style'} eq 'image') { }
203 0 0 if ($y == 0) { }
226 0 0 if ($BBX[1] == 0) { }
243 0 0 unless ($dots[$row][$col])
245 0 0 if ($opts{'style'} eq 'block') { }
291 0 0 unless defined $self->data->{'n2c'}{$self->data->{'char'}[$n] or ".notdef"}
292 0 0 unless defined $self->data->{'n2e'}{$self->data->{'e2n'}[$n] or ".notdef"}
294 0 0 unless defined $self->data->{'n2u'}{$self->data->{'e2n'}[$n] or ".notdef"}
295 0 0 unless defined $self->data->{'n2u'}{$self->data->{'char'}[$n] or ".notdef"}
297 0 0 unless defined $self->data->{'u2c'}{$self->data->{'uni'}[$n]}
298 0 0 unless defined $self->data->{'u2e'}{$self->data->{'e2u'}[$n]}
300 0 0 unless defined $self->data->{'u2n'}{$self->data->{'e2u'}[$n]}
301 0 0 unless defined $self->data->{'u2n'}{$self->data->{'uni'}[$n]}
317 0 0 unless (-e $file)
320 0 0 unless open my $afmf, "<", $file
324 0 0 if (/^STARTCHAR/ .. /^ENDCHAR/) { }
325 0 0 if (/^STARTCHAR\s+(\S+)/) { }
0 0 elsif (/^BITMAP/ .. /^ENDCHAR/) { }
330 0 0 if /^BITMAP/
331 0 0 if (/^ENDCHAR/) { }
346 0 0 if (/^(\S+)\s+(.+)$/)
355 0 0 if (/^(\S+)\s+(.+)$/)
361 0 0 unless (exists $data->{'wx'}{'.notdef'})