| line |
true |
false |
branch |
|
91
|
5 |
2 |
if ($atts{'corefonts'}) |
|
94
|
0 |
7 |
if ($atts{'loader'}) |
|
102
|
0 |
3 |
if $debug |
|
183
|
8 |
65 |
if UNIVERSAL::isa($_[0], __PACKAGE__) |
|
185
|
0 |
73 |
if UNIVERSAL::isa($_[-1], "HASH") |
|
188
|
34 |
17 |
if ($style and not $weight and $style =~ s/^(heavy|bold|semi(?:bold)?|medium|book|light)//i) |
|
194
|
0 |
73 |
if ($font =~ /\.[ot]tf$/) { } |
|
195
|
0 |
0 |
if ($font =~ m[^/]) { } |
|
196
|
0 |
0 |
if -r -s $font |
|
200
|
0 |
0 |
unless -r -s "$_/$font" |
|
211
|
0 |
73 |
unless $ff |
|
216
|
0 |
73 |
if $debug |
|
217
|
73 |
0 |
unless $props |
|
236
|
0 |
0 |
if UNIVERSAL::isa($_[0], __PACKAGE__) |
|
240
|
0 |
0 |
unless (-d -r -x $_) |
|
268
|
0 |
20 |
if UNIVERSAL::isa($_[0], __PACKAGE__) |
|
271
|
0 |
20 |
unless exists $fonts{lc $family} |
|
322
|
5 |
0 |
if UNIVERSAL::isa($_[0], __PACKAGE__) |
|
325
|
0 |
5 |
if (@_ == 1) { } |
|
331
|
0 |
5 |
defined $options{'aliases'} ? : |
|
333
|
0 |
5 |
if $debug |
|
340
|
5 |
0 |
unless $noaliases |
|
348
|
5 |
0 |
unless $noaliases |
|
356
|
5 |
0 |
unless $noaliases |
|
358
|
5 |
0 |
unless $noaliases |
|
385
|
0 |
5 |
if ($options{'remap'} =~ /^(?:gnu[-_]?)?free(?:[-_]?fonts)?$/i) { } |
|
|
0 |
5 |
elsif ($options{'remap'} =~ /^tex(?:[-_]?gyre)?$/i) { } |
|
|
0 |
5 |
elsif ($options{'remap'}) { } |
|
445
|
3 |
0 |
if UNIVERSAL::isa($_[0], __PACKAGE__) |
|
447
|
3 |
0 |
if @_ == 1 |
|
453
|
0 |
0 |
if ($k =~ /^(Courier|Times|Helvetica)$/ and defined $fonts{lc $v}) |
|
455
|
0 |
0 |
if ($k eq 'Courier') { } |
|
|
0 |
0 |
elsif ($k eq 'Helvetica') { } |
|
|
0 |
0 |
elsif ($k eq 'Times') { } |
|
478
|
0 |
0 |
if ($v =~ m[^/]) { } |
|
479
|
0 |
0 |
if -r -s $v |
|
483
|
0 |
0 |
unless -r -s "$_/$v" |
|
489
|
0 |
0 |
unless $maps{$k} = $ff |
|
510
|
20 |
7 |
if UNIVERSAL::isa($_[0], __PACKAGE__) |
|
512
|
0 |
27 |
if UNIVERSAL::isa($_[-1], "HASH") |
|
514
|
0 |
27 |
if $debug |
|
517
|
27 |
0 |
if ($fonts{$family} and $fonts{$family}{$style} and $fonts{$family}{$style}{$weight}) |
|
526
|
0 |
27 |
if ($ff->{'font'}) { } |
|
|
27 |
0 |
elsif ($ff->{'loader_data'}) { } |
|
546
|
0 |
27 |
if ($debug) |
|
557
|
27 |
0 |
if $res |
|
560
|
0 |
0 |
if (_fallback($family, $style, $weight)) |
|
562
|
0 |
0 |
if $res |
|
586
|
7 |
0 |
if UNIVERSAL::isa($_[0], __PACKAGE__) |
|
592
|
7 |
0 |
if $res and $i->{'size'} |
|
611
|
0 |
7 |
if UNIVERSAL::isa($_[0], __PACKAGE__) |
|
620
|
7 |
0 |
if $p[-1] =~ /^\d+(?:\.\d+)?$/ |
|
624
|
7 |
0 |
if (not $family) { } |
|
|
0 |
0 |
elsif ($t =~ /$stylep/) { } |
|
|
0 |
0 |
elsif ($t =~ /$weightp/) { } |
|
|
0 |
0 |
elsif ($t eq 'normal') { } |
|
629
|
0 |
0 |
if $t =~ /$weightp/ |
|
633
|
0 |
0 |
if $t =~ /$stylep/ |
|
665
|
0 |
0 |
if UNIVERSAL::isa($_[0], __PACKAGE__) |
|
667
|
0 |
0 |
if $file =~ /^(.*\.ttc)(:.*)/ |
|
671
|
0 |
0 |
if (lc($b) =~ /^
( .*? )
-?
(roman?|normal|regular)?
(light|book|medium|semi(?:bold)?|bold|heavy)?
(italic|ital|oblique|obli)?
$/xi) |
|
678
|
0 |
0 |
if $1 |
|
679
|
0 |
0 |
if $4 |
|
680
|
0 |
0 |
if $3 |
|
683
|
0 |
0 |
$size ? : |
|
700
|
0 |
0 |
if UNIVERSAL::isa($_[0], __PACKAGE__) |
|
702
|
0 |
0 |
unless UNIVERSAL::isa($loader, "CODE") |
|
711
|
57 |
52 |
if $style =~ /$stylep/ |
|
713
|
0 |
52 |
unless $style =~ /^(regular|normal)?$/ |
|
724
|
56 |
54 |
if $weight =~ /$weightp/ |
|
726
|
0 |
54 |
unless $weight =~ /^(regular|normal)?$/ |
|
735
|
0 |
0 |
unless (defined $fallback) |
|
738
|
0 |
0 |
unless -f -x "$_/fc-match" |
|
743
|
0 |
0 |
unless $fallback |
|
746
|
0 |
0 |
if $debug |
|
749
|
0 |
0 |
if $style |
|
750
|
0 |
0 |
if $weight |
|
754
|
0 |
0 |
unless (open my $fd, "-|", $fallback, "-s", "--format=%{file}\\n", $pattern) |
|
760
|
0 |
0 |
unless -f -r $_ |
|
761
|
0 |
0 |
unless /\.[ot]tf$/i |
|
767
|
0 |
0 |
if $res |
|
768
|
0 |
0 |
if $debug |
|
805
|
0 |
0 |
unless $f |
|
821
|
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'} ? : |