Skip to content

Commit ff64f84

Browse files
committed
fail gracefully without fontconfig
1 parent f00d160 commit ff64f84

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

t/Object/Fonts.xt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ my $bad_guys = qr/(
8787

8888
$x = Prima::Image->new;
8989
my @fonts;
90+
my $F = $x->fonts;
91+
plan skip_all => "No fontconfig fonts" unless @$F;
92+
9093
for my $f ( @{$x->fonts} ) {
9194
next if $f->{name} =~ /$bad_guys/;
9295
next unless $f->{name} =~ /$filter/;

0 commit comments

Comments
 (0)