Image_Text::measurize() – Measurize text into the text box


require_once 'ImageText.php';

array Image_Text::measurize ( bool $force = false )


This method makes your text fit into the defined textbox by measurizing the lines for your given font-size. You can do this manually before rendering (or use even Image_Text::autoMeasurize()) or the renderer will do measurizing automatically.


boolean $force

Optionally, default is FALSE, set TRUE to force measurizing.

Return value

returns Array of measured lines or PEAR::Error.


throws no exceptions thrown


This function can not be called statically.

Initialiaze the Image_Text object. (Previous) Render the text in the canvas using the given options. (Next)
Last updated: Wed, 16 Jan 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.