Branch Coverage

blib/lib/PDF/Builder/Resource/CIDFont/TrueType/FontFile.pm
Criterion Covered Total %
branch 0 274 0.0


line true false branch
42 0 0 if defined $PDF::Builder::Resource::CIDFont::TrueType::FontFile::cmap->{$fname}
44 0 0 if ($@) { }
86 0 0 if ($b0 == 12) { }
0 0 elsif ($b0 < 28) { }
0 0 elsif ($b0 == 28) { }
0 0 elsif ($b0 == 29) { }
0 0 elsif ($b0 == 30) { }
0 0 elsif ($b0 == 31) { }
0 0 elsif ($b0 < 247) { }
0 0 elsif ($b0 < 251) { }
0 0 elsif ($b0 < 255) { }
89 0 0 if ($b1 == 0) { }
0 0 elsif ($b1 == 1) { }
0 0 elsif ($b1 == 2) { }
0 0 elsif ($b1 == 3) { }
0 0 elsif ($b1 == 4) { }
0 0 elsif ($b1 == 5) { }
0 0 elsif ($b1 == 6) { }
0 0 elsif ($b1 == 7) { }
0 0 elsif ($b1 == 8) { }
0 0 elsif ($b1 == 20) { }
0 0 elsif ($b1 == 21) { }
0 0 elsif ($b1 == 22) { }
0 0 elsif ($b1 == 23) { }
0 0 elsif ($b1 == 24) { }
0 0 elsif ($b1 == 25) { }
0 0 elsif ($b1 == 30) { }
0 0 elsif ($b1 == 31) { }
0 0 elsif ($b1 == 32) { }
0 0 elsif ($b1 == 33) { }
0 0 elsif ($b1 == 34) { }
0 0 elsif ($b1 == 35) { }
0 0 elsif ($b1 == 36) { }
0 0 elsif ($b1 == 37) { }
0 0 elsif ($b1 == 38) { }
0 0 elsif ($b1 == 39) { }
142 0 0 if ($b0 == 0) { }
0 0 elsif ($b0 == 1) { }
0 0 elsif ($b0 == 2) { }
0 0 elsif ($b0 == 3) { }
0 0 elsif ($b0 == 4) { }
0 0 elsif ($b0 == 5) { }
0 0 elsif ($b0 == 13) { }
0 0 elsif ($b0 == 14) { }
0 0 elsif ($b0 == 15) { }
0 0 elsif ($b0 == 16) { }
0 0 elsif ($b0 == 17) { }
0 0 elsif ($b0 == 18) { }
172 0 0 if $v > 32767
177 0 0 if $v > 2147483647
185 0 0 if ($m < 10) { }
0 0 elsif ($m == 10) { }
0 0 elsif ($m == 11) { }
0 0 elsif ($m == 12) { }
0 0 elsif ($m == 14) { }
0 0 elsif ($m == 15) { }
227 0 0 unless $font->{'kern'}
237 0 0 if ($fmt == 0) { }
0 0 elsif ($fmt == 2) { }
245 0 0 if $val > 32767
246 0 0 $val < 0 ? :
247 0 0 if ($val != 0)
307 0 0 if ($k eq "ROS")
312 0 0 unless ref $dt eq "HASH" and defined $dt->{'SID'}
313 0 0 if ($dt->{'SID'} >= 379)
320 0 0 if defined $data->{'topdict'}[0]{'VAL'}{$k}
328 0 0 if (defined $opts{'-isocmap'} and not defined $opts{'isocmap'})
329 0 0 if (defined $opts{'-debug'} and not defined $opts{'debug'})
330 0 0 if (defined $opts{'-cmaps'} and not defined $opts{'cmaps'})
331 0 0 if (defined $opts{'-usecmf'} and not defined $opts{'usecmf'})
346 0 0 if (UNIVERSAL::isa($file, 'Font::TTF::Font')) { }
349 0 0 unless -f $file
354 0 0 if ref $class
362 0 0 defined $font->{'CFF '} ? :
364 0 0 if $data->{'iscff'}
382 0 0 if (defined $font->{'OS/2'}{'usWidthClass'}) { }
390 0 0 if (defined $font->{'OS/2'}{'sFamilyClass'})
394 0 0 if (defined $font->{'OS/2'}{$p})
411 0 0 if (defined $font->{'cmap'}->find_ms) { }
436 0 0 if (defined $font->{'OS/2'})
437 0 0 if (defined $font->{'OS/2'}->read->{'bProportion'})
438 0 0 if $font->{'OS/2'}->read->{'bProportion'} == 9
440 0 0 if (defined $font->{'OS/2'}{'bSerifStyle'})
442 0 0 unless $font->{'OS/2'}{'bSerifStyle'} > 10 and $font->{'OS/2'}{'bSerifStyle'} < 14
444 0 0 if (defined $font->{'OS/2'}{'bFamilyType'})
445 0 0 if $font->{'OS/2'}{'bFamilyType'} == 2
448 0 0 if (defined $font->{'OS/2'}{'bLetterform'})
449 0 0 if $font->{'OS/2'}{'bLetterform'} > 8
456 0 0 if ($data->{'issymbol'}) { }
462 0 0 if ($font->{'post'}->read->{'FormatType'} == 3 and defined $font->{'cmap'}->read->find_ms) { }
469 0 0 unless $_
477 0 0 if ($self->iscff)
481 0 0 if ($opts{'debug'})
484 0 0 if ($data->{'issymbol'})
486 0 0 if ($opts{'debug'})
495 0 0 if (defined $data->{'cff'}{'ROS'})
503 0 0 if ($opts{'debug'})
504 0 0 if ($CMapfile ne '') { }
511 0 0 unless (defined $CMapfile)
517 0 0 if ($CMapfile ne '' and $opts{'usecmf'}) { }
523 0 0 if ($opts{'debug'} and $CMapfile ne "")
528 0 0 if ($opts{'debug'})
580 0 0 if ($opts{'debug'})
583 0 0 if ($OS eq 'MSWin32' or $OS eq 'dos' or $OS eq 'os2' or $OS eq 'cygwin') { }
586 0 0 if ($opts{'debug'})
591 0 0 if ($opts{'debug'})
596 0 0 if (defined $opts{'cmaps'}) { }
603 0 0 if (index($CMap, ";") == -1)
614 0 0 if ($cmap_list eq "")
620 0 0 if ($opts{'debug'})
623 0 0 if ($cmap_list eq 'find_ms') { }
638 0 0 if ($_ eq "")
639 0 0 if (exists $cmaps{$_})
641 0 0 if ($opts{'debug'})
651 0 0 unless ($gmap)
653 0 0 if ($CMapfile ne '' and not $opts{'usecmf'}) { }
654 0 0 if ($opts{'debug'})
663 0 0 unless ($gmap)
675 0 0 unless $_
679 0 0 if ($data->{'issymbol'})
684 0 0 unless $data->{'g2n'}[$data->{'u2g'}{$_} or 0]
686 0 0 unless $data->{'u2g'}{$_ or 0}
689 0 0 unless defined $data->{'u2e'}{$data->{'e2u'}[$n]}
697 0 0 if ($hmtx) { }
705 0 0 unless defined $data->{'kern'}
731 0 0 $_[0]->data->{'kern'} ? :
737 0 0 if $i1 == 0 or $i2 == 0
747 0 0 if $self->iscff
753 0 0 unless defined $self->font->{'loca'}
754 0 0 if (defined $self->font->{'loca'}->read->{'glyphs'}[$g])
763 0 0 if $self->iscff
778 0 0 if ($self->iscff) { }
782 0 0 unless ($self->data->{'noembed'})
786 0 0 if ($self->data->{'subset'} and !(defined $self->data->{'nosubset'} && $self->data->{'nosubset'}) || 0)
790 0 0 if (defined $f->{'glyf'})
793 0 0 if $self->subvec($i)
799 0 0 unless ($self->data->{'noembed'})