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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.