Branch Coverage

blib/lib/PDF/Builder/Resource/Font/CoreFont.pm
Criterion Covered Total %
branch 39 68 57.3


line true false branch
207 0 37 if ($@) { }
212 9472 0 unless (defined $PDF::Builder::Resource::Font::CoreFont::fonts->{'uni'}[$n])
229 127973 367 if (not ref $this) { }
258 109 elsif (ref $this eq 'ARRAY') { }
109 0 elsif (ref $this eq 'HASH') { }
0 0 elsif (ref $this eq 'CODE') { }
250 0 37 if (-f $name)
256 37 0 if scalar(@opts) % 2 == 0
258 0 37 if (defined $opts{'-encode'} and not defined $opts{'encode'})
259 0 37 if (defined $opts{'-metrics'} and not defined $opts{'metrics'})
260 0 37 if (defined $opts{'-dokern'} and not defined $opts{'dokern'})
261 0 37 if (defined $opts{'-kerning'} and not defined $opts{'kerning'})
262 0 37 if (defined $opts{'-pdfname'} and not defined $opts{'pdfname'})
265 0 37 if $PDF::Builder::Resource::Font::CoreFont::alias->{$lookname}
267 0 37 if (defined $PDF::Builder::Resource::Font::CoreFont::subs->{$lookname}) { }
270 0 0 if $k =~ /^\-/
274 0 37 if (defined $opts{'metrics'}) { }
281 0 37 unless $data->{'fontname'}
296 0 37 if ref $class
299 0 37 unless $self->is_obj($pdf)
301 0 37 if $opts{'dokern'}
305 0 37 if ($opts{'pdfname'})
309 0 37 unless ($self->data->{'iscore'})
313 0 37 if ($opts{'encode'} =~ /^utf/i)
320 0 37 if ($is_standard and not $self->issymbol and not $opts{'encode'})
353 82 37 if ($self =~ /^PDF::Builder/) { }
359 31 88 if (@_)
361 29 90 if ($win_flag) { }
386 4 2 if (@_)
390 3 3 if ($Win_ext) { }
391 2 1 wantarray ? :
394 2 1 wantarray ? :
418 0 0 if (@_)
425 0 0 if ($Win_ext)