Branch Coverage

blib/lib/SWF/Builder/Character/Font/TTF.pm
Criterion Covered Total %
branch 27 66 40.9


line true false branch
25 0 1 unless my $font = 'Font::TTF::Font'->open($fontfile) || 'Font::TTF::Ttc'->open($fontfile)
31 0 1 if (ref($font) =~ /:Ttc$/)
45 0 0 if (index($names, "$fontname\n") >= 0)
54 0 1 unless $name = $$font{'name'} || $$p_font{'name'}
56 1 0 if ($os2 = $$font{'OS/2'} || $$p_font{'OS/2'}) { }
60 0 1 if ($fstype & 770) { }
0 1 elsif ($fstype & 4) { }
71 0 1 unless $head = $$font{'head'} || $$p_font{'head'}
73 0 1 unless $hhea = $$font{'hhea'} || $$p_font{'hhea'}
75 0 1 unless $cmap = $$font{'cmap'} || $$p_font{'cmap'}
77 0 1 unless $loca = $$font{'loca'} || $$p_font{'loca'}
79 0 1 unless $hmtx = $$font{'hmtx'} || $$p_font{'hmtx'}
81 0 1 if $kern = $$font{'kern'} || $$p_font{'kern'}
94 1 0 defined $os2 ? :
100 0 0 if ($$kt{'coverage'} & 1)
107 1 0 unless ($fontname)
109 0 1 unless $fontname
114 0 1 if $type & 1
115 0 1 if $type & 2
123 0 0 unless my $font = 'Font::TTF::Ttc'->open($ttc)
145 3 0 unless my $kern_t = $$self{'_ttf_tables'}{'_kern'}
147 0 0 if (exists $$kern_t{$$cmap{$code1}})
148 0 0 if (exists $$kern_t{$$cmap{$code1}}{$$cmap{$code2}})
157 0 4 unless $$self{'_embed'}
163 4 0 if (defined $glyph1)
165 4 0 if (not exists $$glyph1{'comps'}) { }
170 0 0 if exists $$cg{'args'}
171 0 0 if (exists $$cg{'scale'})
200 0 7 unless ($f & 1)
204 0 0 if ($f[0] & 1) { }
221 3 110 if ($f) { }
225 17 93 if ($f[0] & 1) { }
243 1 0 if $f