1Template::Plugin::GD::TUesxetr(3C)ontributed Perl DocumeTnetmaptliaotne::Plugin::GD::Text(3)
2
3
4
6 Template::Plugin::GD::Text - Text utilities for use with GD
7
9 [% USE gd_text = GD.Text %]
10
12 [%
13 USE gd_c = GD.Constants;
14 USE t = GD.Text;
15 x = t.set_text('Some text');
16 r = t.get('width', 'height', 'char_up', 'char_down');
17 r.join(":"); "\n"; # returns 54:13:13:0.
18 -%]
19
20 [%
21 USE gd_c = GD.Constants;
22 USE t = GD.Text(text => 'FooBar Banana', font => gd_c.gdGiantFont);
23 t.get('width'); "\n"; # returns 117.
24 -%]
25
27 The GD.Text plugin provides an interface to the GD::Text module. It
28 allows attributes of strings such as width and height in pixels to be
29 computed.
30
31 See GD::Text for more details. See Template::Plugin::GD::Text::Align
32 and Template::Plugin::GD::Text::Wrap for plugins that allow you to
33 render aligned or wrapped text in GD images.
34
36 Thomas Boutell wrote the GD graphics library.
37
38 Lincoln D. Stein wrote the Perl GD modules that interface to it and
39 Martien Verbruggen wrote the GD::Text module.
40
41 Craig Barratt <craig@arraycomm.com> wrote the original GD plugins for
42 the Template Toolkit (2001).
43
44 Andy Wardley <abw@cpan.org> extracted them from the TT core into a
45 separate distribution for TT version 2.15.
46
48 Copyright (C) 2001 Craig Barratt <craig@arraycomm.com>, 2006 Andy
49 Wardley <abw@cpan.org>.
50
51 GD::Text is copyright 1999 Martien Verbruggen.
52
53 This module is free software; you can redistribute it and/or modify it
54 under the same terms as Perl itself.
55
57 Template::Plugin::GD, Template::Plugin::GD::Text::Wrap,
58 Template::Plugin::GD::Text::Align, GD
59
60
61
62perl v5.32.1 2021-01-27 Template::Plugin::GD::Text(3)