line |
true |
false |
branch |
91
|
2 |
2 |
if ($atts{'corefonts'}) |
94
|
0 |
4 |
if ($atts{'loader'}) |
174
|
8 |
46 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
176
|
0 |
54 |
if UNIVERSAL::isa($_[-1], "HASH") |
179
|
24 |
12 |
if ($style and not $weight and $style =~ s/^(heavy|bold|semi(?:bold)?|medium|book|light)//i) |
185
|
0 |
54 |
if ($font =~ /\.[ot]tf$/) { } |
186
|
0 |
0 |
if ($font =~ m[^/]) { } |
187
|
0 |
0 |
if -r -s $font |
191
|
0 |
0 |
unless -r -s "$_/$font" |
202
|
0 |
54 |
unless $ff |
207
|
54 |
0 |
unless $props |
226
|
0 |
0 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
230
|
0 |
0 |
unless (-d -r -x $_) |
257
|
0 |
8 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
260
|
0 |
8 |
unless exists $fonts{lc $family} |
285
|
2 |
0 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
293
|
2 |
0 |
unless $noaliases |
301
|
2 |
0 |
unless $noaliases |
309
|
2 |
0 |
unless $noaliases |
311
|
2 |
0 |
unless $noaliases |
343
|
16 |
5 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
345
|
0 |
21 |
if UNIVERSAL::isa($_[-1], "HASH") |
349
|
21 |
0 |
if ($fonts{$family} and $fonts{$family}{$style} and $fonts{$family}{$style}{$weight}) |
358
|
0 |
21 |
if ($ff->{'font'}) { } |
|
21 |
0 |
elsif ($ff->{'loader_data'}) { } |
385
|
21 |
0 |
if $res |
388
|
0 |
0 |
if (_fallback($family, $style, $weight)) |
390
|
0 |
0 |
if $res |
414
|
5 |
0 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
420
|
5 |
0 |
if $res and $i->{'size'} |
439
|
0 |
5 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
448
|
5 |
0 |
if $p[-1] =~ /^\d+(?:\.\d+)?$/ |
452
|
5 |
0 |
if (not $family) { } |
|
0 |
0 |
elsif ($t =~ /$stylep/) { } |
|
0 |
0 |
elsif ($t =~ /$weightp/) { } |
|
0 |
0 |
elsif ($t eq 'normal') { } |
491
|
0 |
0 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
497
|
0 |
0 |
if (lc($b) =~ /^
( .*? )
-?
(roman?|normal|regular)?
(light|book|medium|semi(?:bold)?|bold|heavy)?
(italic|ital|oblique|obli)?
$/xi) |
504
|
0 |
0 |
if $1 |
505
|
0 |
0 |
if $4 |
506
|
0 |
0 |
if $3 |
524
|
0 |
0 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
526
|
0 |
0 |
unless UNIVERSAL::isa($loader, "CODE") |
535
|
45 |
38 |
if $style =~ /$stylep/ |
537
|
0 |
38 |
unless $style =~ /^(regular|normal)?$/ |
548
|
40 |
42 |
if $weight =~ /$weightp/ |
550
|
0 |
42 |
unless $weight =~ /^(regular|normal)?$/ |
559
|
0 |
0 |
unless (defined $fallback) |
562
|
0 |
0 |
unless -f -x "$_/fc-match" |
567
|
0 |
0 |
unless $fallback |
572
|
0 |
0 |
if $style |
573
|
0 |
0 |
if $weight |
577
|
0 |
0 |
unless (open my $fd, "-|", $fallback, "-s", "--format=%{file}\\n", $pattern) |
582
|
0 |
0 |
unless -f -r $_ |
583
|
0 |
0 |
unless /\.[ot]tf$/i |
589
|
0 |
0 |
if $res |
590
|
0 |
0 |
if $debug |
627
|
0 |
0 |
unless $f |
643
|
0 |
0 |
$style eq 'normal' ? : |
|
0 |
0 |
$weight eq 'heavy' ? : |
|
0 |
0 |
$weight eq 'semibold' ? : |
|
0 |
0 |
$weight eq 'semi' ? : |
|
0 |
0 |
$weight eq 'medium' ? : |
|
0 |
0 |
$weight eq 'book' ? : |
|
0 |
0 |
$weight eq 'light' ? : |
|
0 |
0 |
$weight eq 'bold' ? : |
|
0 |
0 |
$f->{'shaping'} ? : |
|
0 |
0 |
$f->{'interline'} ? : |
|
0 |
0 |
$f->{'font'} ? : |