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::Text module. ✨
  • 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 (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::GD
  • Template::Plugin::GD::Text::Wrap
  • Template::Plugin::GD::Text::Align
  • GD

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