]> git.imager.perl.org - imager.git/blob - t/t37std.t
8a638f1723229f5a72420ece6e7e3974e46442aa
[imager.git] / t / t37std.t
1 #!perl -w
2 use strict;
3 use Imager::Test qw(std_font_tests std_font_test_count);
4 use Imager::Font;
5 use Test::More;
6
7 $Imager::formats{tt}
8         or plan skip_all => "No tt available";
9
10 plan tests => std_font_test_count();
11
12 my $font = Imager::Font->new(file => "fontfiles/dodge.ttf",
13                              type => "tt");
14 my $name_font =
15   Imager::Font->new(file => "fontfiles/ImUgly.ttf",
16                     type => "tt");
17
18 SKIP:
19 {
20   $font
21     or skip "Cannot load font", std_font_test_count();
22   std_font_tests
23     ({
24       font => $font,
25       has_chars => [ 1, 1, 1 ],
26       glyph_name_font => $name_font,
27       glyph_names => [ qw(A uni2010 A) ],
28      });
29 }