WE_Frontend::TextLayouter - support functions for layouting text and html
use WE_Frontend::TextLayouter qw(break_text); my(@text_blocks) = break_text($text, $fontinfo, $boxwdith, $boxheight);
This module supplies some support functions for layouting text and html.
Takes a string parameter $text with plain text and breaks this text into several parts (returned as a list of text strings) according to $fontinfo and a box with the dimensions $boxwidth and $boxheight.
$text
$fontinfo
$boxwidth
$boxheight
See WE_Frontend::FontInfo for more information about the $fontinfo structure.
Optionally, additional arguments can be supplied if a partially filled boxed should be filled further:
The partially filled box (default: empty).
The starting x coordinate (default 0).
The starting y coordinate (default 0).
The height of the current line.
The -lastbox hash reference, if specified, will be filled with the last values for -x, -y, -maxlineheight and -box for the last box.
-x
-y
-maxlineheight
-box
Slaven Rezic - slaven@rezic.de
WE_Frontend::FontInfo
To install WE::DB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WE::DB
CPAN shell
perl -MCPAN -e shell install WE::DB
For more information on module installation, please visit the detailed CPAN module installation guide.