line |
true |
false |
branch |
91
|
2 |
2 |
if ($atts{'corefonts'}) |
94
|
0 |
4 |
if ($atts{'loader'}) |
177
|
8 |
46 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
179
|
0 |
54 |
if UNIVERSAL::isa($_[-1], "HASH") |
182
|
24 |
12 |
if ($style and not $weight and $style =~ s/^(heavy|bold|semi(?:bold)?|medium|book|light)//i) |
188
|
0 |
54 |
if ($font =~ /\.[ot]tf$/) { } |
189
|
0 |
0 |
if ($font =~ m[^/]) { } |
190
|
0 |
0 |
if -r -s $font |
194
|
0 |
0 |
unless -r -s "$_/$font" |
205
|
0 |
54 |
unless $ff |
210
|
54 |
0 |
unless $props |
229
|
0 |
0 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
233
|
0 |
0 |
unless (-d -r -x $_) |
260
|
0 |
8 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
263
|
0 |
8 |
unless exists $fonts{lc $family} |
288
|
2 |
0 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
296
|
2 |
0 |
unless $noaliases |
304
|
2 |
0 |
unless $noaliases |
312
|
2 |
0 |
unless $noaliases |
314
|
2 |
0 |
unless $noaliases |
346
|
16 |
5 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
348
|
0 |
21 |
if UNIVERSAL::isa($_[-1], "HASH") |
350
|
0 |
21 |
if $debug |
353
|
21 |
0 |
if ($fonts{$family} and $fonts{$family}{$style} and $fonts{$family}{$style}{$weight}) |
362
|
0 |
21 |
if ($ff->{'font'}) { } |
|
21 |
0 |
elsif ($ff->{'loader_data'}) { } |
382
|
0 |
21 |
if ($debug) |
393
|
21 |
0 |
if $res |
396
|
0 |
0 |
if (_fallback($family, $style, $weight)) |
398
|
0 |
0 |
if $res |
422
|
5 |
0 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
428
|
5 |
0 |
if $res and $i->{'size'} |
447
|
0 |
5 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
456
|
5 |
0 |
if $p[-1] =~ /^\d+(?:\.\d+)?$/ |
460
|
5 |
0 |
if (not $family) { } |
|
0 |
0 |
elsif ($t =~ /$stylep/) { } |
|
0 |
0 |
elsif ($t =~ /$weightp/) { } |
|
0 |
0 |
elsif ($t eq 'normal') { } |
499
|
0 |
0 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
505
|
0 |
0 |
if (lc($b) =~ /^
( .*? )
-?
(roman?|normal|regular)?
(light|book|medium|semi(?:bold)?|bold|heavy)?
(italic|ital|oblique|obli)?
$/xi) |
512
|
0 |
0 |
if $1 |
513
|
0 |
0 |
if $4 |
514
|
0 |
0 |
if $3 |
532
|
0 |
0 |
if UNIVERSAL::isa($_[0], "Text::Layout::FontConfig") |
534
|
0 |
0 |
unless UNIVERSAL::isa($loader, "CODE") |
543
|
45 |
38 |
if $style =~ /$stylep/ |
545
|
0 |
38 |
unless $style =~ /^(regular|normal)?$/ |
556
|
40 |
42 |
if $weight =~ /$weightp/ |
558
|
0 |
42 |
unless $weight =~ /^(regular|normal)?$/ |
567
|
0 |
0 |
unless (defined $fallback) |
570
|
0 |
0 |
unless -f -x "$_/fc-match" |
575
|
0 |
0 |
unless $fallback |
578
|
0 |
0 |
if $debug |
581
|
0 |
0 |
if $style |
582
|
0 |
0 |
if $weight |
586
|
0 |
0 |
unless (open my $fd, "-|", $fallback, "-s", "--format=%{file}\\n", $pattern) |
591
|
0 |
0 |
unless -f -r $_ |
592
|
0 |
0 |
unless /\.[ot]tf$/i |
598
|
0 |
0 |
if $res |
599
|
0 |
0 |
if $debug |
636
|
0 |
0 |
unless $f |
652
|
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'} ? : |