1FT2(3) User Contributed Perl Documentation FT2(3)
2
3
4
6 Imager::Font::FT2 - font support using FreeType 2
7
9 use Imager;
10
11 my $img = Imager->new;
12 my $font = Imager::Font->new(file => "foo.ttf", type => "ft2");
13
14 $img->string(... font => $font);
15
17 This provides font support on FreeType 2.
18
20 Unfortunately, older versions of Imager would install
21 "Imager::Font::FreeType2" even if FreeType 2 wasn't available, and if
22 no font was created would succeed in loading the module. This means
23 that an existing "FreeType2.pm" could cause a probe success for
24 supported font files, so I've renamed it.
25
27 Tony Cook <tonyc@cpan.org>
28
30 Imager, Imager::Font.
31
32
33
34perl v5.32.0 2020-07-28 FT2(3)