Word wrap
Informations
Author: Ron Korving
License: Freeware
Description
If you want to wrap some text without rendering it, you can use this simple function.
int WordWrap(string &text, float maxwidth)
It returns the total number of lines that the string consists of. The text parameter
is overwritten (call by reference) with the new wrapped text. The maxwidth parameter
is the maximum width a line may be, given in the unit set previously in your FPDF object.