Branch Coverage

blib/lib/PDF/API2/Resource/BaseFont.pm
Criterion Covered Total %
branch 26 62 41.9


line true false branch
33 0 54 if ref $class
36 0 54 unless $self->is_obj($pdf)
75 16 0 unless $self->data->{'iscore'}
76 1 15 if (defined $self->data->{'panose'})
80 1 15 if defined $self->data->{'fontfamily'}
81 1 15 if defined $self->data->{'fontweight'}
82 1 15 if defined $self->data->{'fontstretch'}
90 0 1 if defined $self->{'ToUnicode'}
100 0 1 if ($self->can('uniByCId') and $self->can('glyphNum')) { }
104 0 0 $self->glyphNum - $j > 100 ? :
105 0 0 if ($j == 0) { }
0 0 elsif ($j % 100 == 0) { }
506 795 53 if (ref $self->data->{'wx'} eq 'HASH') { }
513 53 0 if defined $cid
531 0 0 if defined $gid
547 12317 0 if defined $glyph
563 0 0 if defined $glyph
577 6 179 if utf8::is_utf8($text)
586 0 2710 if ($kern)
603 0 0 unless utf8::is_utf8($text)
648 3 27 if utf8::is_utf8($string)
659 0 0 unless $self->{'-dokern'} and ref $self->data->{'kern'}
661 0 0 if utf8::is_utf8($string)
667 0 0 if (defined $self->data->{'kern'}{$last_glyph . ":" . $self->data->{'e2n'}[$n]})
668 0 0 if $tBefore
677 0 0 unless $tBefore
681 0 0 if $tBefore
691 0 30 if (defined $size and $self->{'-dokern'}) { }
30 0 elsif (defined $size) { }
693 0 0 if $indent
697 12 18 if $indent