Move freetype 2 support into its own module
[imager.git] / lib / Imager / Font / FreeType2.pm
CommitLineData
faa9b3e7
TC
1package Imager::Font::FreeType2;
2use strict;
50c75381 3use Imager::Font::FT2;
f17b46d8 4use vars qw(@ISA $VERSION);
50c75381
TC
5@ISA = qw(Imager::Font::FT2);
6
7$VERSION = "1.020";
8
3e882362 9
faa9b3e7
TC
101;
11
12__END__
13
14=head1 NAME
15
16 Imager::Font::FreeType2 - low-level functions for FreeType2 text output
17
18=head1 DESCRIPTION
19
20Imager::Font creates a Imager::Font::FreeType2 object when asked to.
21
22See Imager::Font to see how to use this type.
23
24This class provides low-level functions that require the caller to
25perform data validation.
26
27This driver supports:
28
29=over
30
31=item transform()
32
33=item dpi()
34
35=item draw()
36
37The following parameters:
38
39=over
40
5715f7c3 41=item *
faa9b3e7 42
5715f7c3 43C<utf8>
faa9b3e7 44
5715f7c3
TC
45=item *
46
47C<vlayout>
48
49=item *
50
51C<sizew>
faa9b3e7
TC
52
53=back
54
55=back
56
57=head2 Special behaviors
58
59If you call transform() to set a transformation matrix, hinting will
60be switched off. This prevents sudden jumps in the size of the text
61caused by the hinting when the transformation is the identity matrix.
62If for some reason you want hinting enabled, use
63$font->hinting(hinting=>1) to re-enable hinting. This will need to be
64called after I<each> call to transform().
65
66=head1 AUTHOR
67
68Addi, Tony
69
70=cut