1T1(3)                 User Contributed Perl Documentation                T1(3)
2
3
4

NAME

6         Imager::Font::Type1 - low-level functions for Type1 fonts
7

DESCRIPTION

9       Imager::Font::T1 is deprecated.
10
11       T1Lib is unmaintained and has serious bugs when built on 64-bit
12       systems.  Freetype 2 has Type 1 font support and is supported by Imager
13       via Imager::Font::FT2.
14
15       Imager::Font creates a "Imager::Font::Type1 object" when asked to
16       create a font object based on a ".pfb" file.
17
18       See Imager::Font to see how to use this type.
19
20       This class provides low-level functions that require the caller to
21       perform data validation
22
23       By default Imager no longer creates the t1lib.log log file.  You can
24       re-enable that by calling Imager::init() with the "t1log" option:
25
26         Imager::init(t1log=>1);
27
28       This must be called before creating any fonts.
29
30       Currently specific to Imager::Font::Type1, you can use the following
31       flags when drawing text or calculating a bounding box:
32
33       •   "underline" - Draw the text with an underline.
34
35       •   "overline" - Draw the text with an overline.
36
37       •   "strikethrough" - Draw the text with a strikethrough.
38
39       Obviously, if you're calculating the bounding box the size of the line
40       is included in the box, and the line isn't drawn :)
41
42   Anti-aliasing
43       T1Lib supports multiple levels of anti-aliasing, by default, if you
44       request anti-aliased output, Imager::Font::T1 will use the maximum
45       level.
46
47       You can override this with the set_t1_aa() method:
48
49       set_aa_level()
50           Usage:
51
52             $font->set_aa_level(1);
53             Imager::Font::T1->set_aa_level(2);
54
55           Sets the T1Lib anti-aliasing level either for the specified font,
56           or for new font objects.
57
58           The only parameter must be 1 or 2.
59
60           Returns true on success.
61

AUTHOR

63       Addi, Tony
64
65
66
67perl v5.34.0                      2022-01-21                             T1(3)
Impressum