| blib/lib/PDF/Builder/Resource/BaseFont.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 26 | 77 | 33.7 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 121 | 1 | 0 | 0 | $self->can("uniByCId") and $self->can("glyphNum") |
| 957 | 182 | 0 | 0 | $self->{'-dokern'} && ref $self->data->{'kern'} |
| 1073 | 0 | 0 | 0 | $self->{'-dokern'} and ref $self->data->{'kern'} |
| 1107 | 0 | 31 | 0 | defined $size and $self->{'-dokern'} |
| line | l | !l | condition |
|---|---|---|---|
| 80 | 4 | 0 | $_ || 0 |
| 83 | 1 | 0 | $self->ascender || 0 |
| 84 | 1 | 0 | $self->descender || 0 |
| 85 | 0 | 1 | $self->italicangle || 0.0 |
| 86 | 1 | 0 | $self->xheight || ($self->fontbbox)[3] * 0.5 || 500 |
| 87 | 1 | 0 | $self->capheight || ($self->fontbbox)[3] || 800 |
| 88 | 0 | 1 | $self->stemv || 0 |
| 89 | 0 | 1 | $self->stemh || 0 |
| 90 | 1 | 0 | $self->avgwidth || 300 |
| 91 | 1 | 0 | $self->missingwidth || 300 |
| 93 | 1 | 0 | $self->flags || 0 |
| 136 | 0 | 0 | $self->uniByCId($j) // 0 |
| 696 | 0 | 0 | $_[0]->data->{'n2e'}{$_[1]} || 0 |
| 713 | 18 | 0 | $_[0]->data->{'u2e'}{$_[1]} || $_[0]->data->{'u2c'}{$_[1]} || 0 |
| 730 | 0 | 0 | $_[0]->data->{'n2c'}{$_[1]} || 0 |
| 746 | 0 | 0 | $_[0]->data->{'u2c'}{$_[1]} || 0 |
| 764 | 0 | 0 | $_[0]->data->{'u2n'}{$_[1]} || '.notdef' |
| 825 | 53 | 0 | $width //= 300 |
| 852 | 0 | 0 | $width //= 300 |
| 881 | 8660 | 38 | $width //= 300 |
| 931 | 0 | 0 | $width //= 300 |
| 964 | 0 | 0 | $self->data->{'kern'}{$last_glyph . ':' . $glyph} // 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 92 | 1 | 0 | 0 | $self->maxwidth || $self->missingwidth || ($self->fontbbox)[2] |
| 387 | 0 | 1 | 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 |
| 824 | 53 | 0 | 0 | $width //= $self->missingwidth |
| 851 | 0 | 0 | 0 | $width //= $self->missingwidth |
| 880 | 8585 | 75 | 38 | $width //= $self->missingwidth |
| 930 | 0 | 0 | 0 | $width //= $self->missingwidth |
| 960 | 1909 | 378 | 0 | $cache[$n] //= $self->wxByEnc($n) |