Condition Coverage

blib/lib/PDF/API2/Resource/BaseFont.pm
Criterion Covered Total %
condition 35 84 41.6


and 3 conditions

line !l l&&!r l&&r condition
100 1 0 0 $self->can("uniByCId") and $self->can("glyphNum")
581 185 0 0 $self->{'-dokern'} && ref $self->data->{'kern'}
659 0 0 0 $self->{'-dokern'} and ref $self->data->{'kern'}
691 0 30 0 defined $size and $self->{'-dokern'}

or 2 conditions

line l !l condition
62 63 1 $_ || 0
65 16 0 $self->ascender || 0
66 16 0 $self->descender || 0
67 6 10 $self->italicangle || 0
68 16 0 $self->xheight || ($self->fontbbox)[3] * 0.5 || 500
69 16 0 $self->capheight || ($self->fontbbox)[3] || 800
70 0 16 $self->stemv || 0
71 0 16 $self->stemh || 0
72 16 0 $self->avgwidth || 300
73 1 15 $self->missingwidth || 300
75 16 0 $self->flags || 0
117 0 0 $self->uniByCId($j) // 0
126 256 0 $self->uniByEnc($j) // 0
440 0 0 $_[0]->data->{'n2e'}{$_[1]} || 0
448 27 0 $_[0]->data->{'u2e'}{$_[1]} || $_[0]->data->{'u2c'}{$_[1]} || 0
456 0 0 $_[0]->data->{'n2c'}{$_[1]} || 0
464 0 0 $_[0]->data->{'u2c'}{$_[1]} || 0
474 0 0 $_[0]->data->{'u2n'}{$_[1]} || '.notdef'
509 691 104 $width //= 300
515 53 0 $width //= 300
533 0 0 $width //= 300
549 12278 39 $width //= 300
565 0 0 $width //= 300
587 0 0 $self->data->{'kern'}{$last_glyph . ":" . $self->data->{'e2n'}[$n]} // 0

or 3 conditions

line l !l&&r !l&&!r condition
74 1 15 0 $self->maxwidth || $self->missingwidth || ($self->fontbbox)[2]
258 0 16 0 $aw ||= ($self->wxByGlyph("a") * 64 + $self->wxByGlyph("b") * 14 + $self->wxByGlyph("c") * 27 + $self->wxByGlyph("d") * 35 + $self->wxByGlyph("e") * 100 + $self->wxByGlyph("f") * 20 + $self->wxByGlyph("g") * 14 + $self->wxByGlyph("h") * 42 + $self->wxByGlyph("i") * 63 + $self->wxByGlyph("j") * 3 + $self->wxByGlyph("k") * 6 + $self->wxByGlyph("l") * 35 + $self->wxByGlyph("m") * 20 + $self->wxByGlyph("n") * 56 + $self->wxByGlyph("o") * 56 + $self->wxByGlyph("p") * 17 + $self->wxByGlyph("q") * 4 + $self->wxByGlyph("r") * 49 + $self->wxByGlyph("s") * 56 + $self->wxByGlyph("t") * 71 + $self->wxByGlyph("u") * 31 + $self->wxByGlyph("v") * 10 + $self->wxByGlyph("w") * 18 + $self->wxByGlyph("x") * 3 + $self->wxByGlyph("y") * 18 + $self->wxByGlyph("z") * 2 + $self->wxByGlyph("A") * 64 + $self->wxByGlyph("B") * 14 + $self->wxByGlyph("C") * 27 + $self->wxByGlyph("D") * 35 + $self->wxByGlyph("E") * 100 + $self->wxByGlyph("F") * 20 + $self->wxByGlyph("G") * 14 + $self->wxByGlyph("H") * 42 + $self->wxByGlyph("I") * 63 + $self->wxByGlyph("J") * 3 + $self->wxByGlyph("K") * 6 + $self->wxByGlyph("L") * 35 + $self->wxByGlyph("M") * 20 + $self->wxByGlyph("N") * 56 + $self->wxByGlyph("O") * 56 + $self->wxByGlyph("P") * 17 + $self->wxByGlyph("Q") * 4 + $self->wxByGlyph("R") * 49 + $self->wxByGlyph("S") * 56 + $self->wxByGlyph("T") * 71 + $self->wxByGlyph("U") * 31 + $self->wxByGlyph("V") * 10 + $self->wxByGlyph("W") * 18 + $self->wxByGlyph("X") * 3 + $self->wxByGlyph("Y") * 18 + $self->wxByGlyph("Z") * 2 + $self->wxByGlyph("space") * 332) / 2000
508 691 0 104 $width //= $self->missingwidth
514 53 0 0 $width //= $self->missingwidth
532 0 0 0 $width //= $self->missingwidth
548 11986 292 39 $width //= $self->missingwidth
564 0 0 0 $width //= $self->missingwidth
584 2297 413 0 $cache[$n] //= $self->wxByEnc($n)