HaruFont::measureTextCalculate the number of characters which can be included within the specified width Description
int HaruFont::measureText
( string
$text
, float $width
, float $font_size
, float $char_space
, float $word_space
[, bool $word_wrap = false
] )Calculate the number of characters which can be included within the specified width. Parameters
Return ValuesReturns the number of characters which can be included within the specified width. Errors/ExceptionsThrows a HaruException on error. |