
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.
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.

Slaven Rezic - slaven@rezic.de
