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