Condition Coverage

lib/ChordPro/lib/SVGPDF/FontManager.pm
Criterion Covered Total %
condition 0 54 0.0


and 3 conditions

line !l l&&!r l&&r condition
49 0 0 0 $fam and lc $fam eq $family
52 0 0 0 $_->{'font-style'} and $style->{'font-style'}
0 0 0 $_->{'font-style'} and $style->{'font-style'} and $_->{'font-style'} ne $style->{'font-style'}
54 0 0 0 $_->{'font-weight'} and $style->{'font-weight'}
0 0 0 $_->{'font-weight'} and $style->{'font-weight'} and $_->{'font-weight'} ne $style->{'font-weight'}

or 2 conditions

line l !l condition
38 0 0 $style->{'font-style'} // "normal"
39 0 0 $style->{'font-weight'} // "normal"
43 0 0 $style->{'font-family'} // []
47 0 0 $style->{'@font-face'} // []
62 0 0 $style->{'font-size'} || 12
103 0 0 $style->{'font-size'} || 12
136 0 0 $style->{'font-size'} || 12
147 0 0 $style->{'font-size'} || 12
160 0 0 $style->{'font-size'} || 12
180 0 0 $style->{'font-size'} || 12
187 0 0 $style->{'font-family'} // "Times-Roman"
188 0 0 $style->{'font-size'} || 12
190 0 0 $style->{'font-style'} && $style->{'font-style'} =~ /^(italic|oblique)$/u || ''
192 0 0 $style->{'font-weight'} && $style->{'font-weight'} =~ /^(bold|black)$/u || ''
236 0 0 $style->{'font-family'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
76 0 0 0 $td //= tempdir("CLEANUP", 1)
113 0 0 0 $td //= tempdir("CLEANUP", 1)
230 0 0 0 $fc->{$fn} //= do { unless ($fn =~ /\.\w+$/u) { my $t = ""; $t .= 'italic, ' if $em; $t .= 'bold, ' if $bd; $t = ' (' . substr($t, 0, (length($t) - 2)) . ')' if $t; warn("SVG: Font ", $style->{'font-family'} // "", "$t - falling back to built-in font $fn with limited glyphs!\n"); } ; +{"font", $svg->pdf->font($fn), "src", $fn} }