previousconstructor Image_Text::Image_Text (Previous) (Next) Image_Text::displaynext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Image_Text::autoMeasurize

Image_Text::autoMeasurize() – Auto measurize text

Synopsis

require_once 'ImageText.php';

int Image_Text::autoMeasurize ( int $start = false , int $end = false )

Description

Automatically determines the greatest possible font size to fit the text into the text box. This method may be very resource intensive on your webserver. A good tweaking point are the $start and $end parameters, which specify the range of font sizes to search through. Anyway, the results should be cached if possible. You can optionally set $start and $end here as a parameter or the settings of the options array are used.

Parameter

integer $start

Fontsize to start testing with.

integer $end

Fontsize to end testing with.

Return value

returns Fontsize measured or PEAR::Error.

Throws

throws no exceptions thrown

Note

This function can not be called statically.

previousconstructor Image_Text::Image_Text (Previous) (Next) Image_Text::displaynext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.