HaruFont::getTextWidth

(PECL haru >= 0.0.1)
Get the total width of the text, number of characters, number of words and number of spaces
array HaruFont::getTextWidth ( string $text )

Get the total width of the text, number of characters, number of words and number of spaces.

Parameters:
text

The text to measure.

Returns:

Returns the total width of the text, number of characters, number of words and number of spaces in the given text.

Exception:

Throws a HaruException on error.

doc_php
2016-02-24 16:03:31
Comments
Leave a Comment

Please login to continue.