Templat...D::Text(3)
π Template::Plugin::GD::Text(3) β bestie edition β¨
π NAME π
Template::Plugin::GD::Text β Text utilities for use with GD. That's the whole name section, and yes, it ate. π
β¨ SYNOPSIS β¨
Use it in your template like this, periodt:
[% USE gd_text = GD.Text %]
πΈ EXAMPLES πΈ
Okay so these examples are literally the vibe. First one, no cap:
[%
USE gd_c = GD.Constants;
USE t = GD.Text;
x = t.set_text('Some text');
r = t.get('width', 'height', 'char_up', 'char_down');
r.join(":"); "\n"; # returns 54:13:13:0.
-%]
And the second one:
[%
USE gd_c = GD.Constants;
USE t = GD.Text(text => 'FooBar Banana', font => gd_c.gdGiantFont);
t.get('width'); "\n"; # returns 117.
-%]
π¦ DESCRIPTION π¦
The GD.Text plugin provides an interface to the GD::Text module β no cap. It lets you compute attributes of strings, like width and height in pixels. π
For more details, see GD::Text. Also see Template::Plugin::GD::Text::Align and Template::Plugin::GD::Text::Wrap for plugins that allow you to render aligned or wrapped text in GD images. Those are the ones you want when your text needs main character energy. π
π AUTHOR π
- Thomas Boutell wrote the GD graphics library. π
- Lincoln D. Stein wrote the Perl GD modules that interface to it. π«Ά
- Martien Verbruggen wrote the
GD::Textmodule. β¨ Craig Barratt <craig@arraycomm.com>wrote the original GD plugins for the Template Toolkit (2001). πAndy Wardley <abw@cpan.org>extracted them from the TT core into a separate distribution for TT version 2.15. π¦
β COPYRIGHT β
Copyright (C) 2001 Craig Barratt <craig@arraycomm.com>, 2006 Andy Wardley <abw@cpan.org>.
GD::Text is copyright 1999 Martien Verbruggen.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Slay, but legally. π
π₯ SEE ALSO π₯
Template::Plugin::GDTemplate::Plugin::GD::Text::WrapTemplate::Plugin::GD::Text::AlignGD
That's the whole page, bestie. This is User Contributed Perl Documentation for Template::Plugin::GD::Text, from perl v5.42.0, dated 2017-10-08. Mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Template-GD 2.66-bp160.1.11 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms