HaruFont::getTextWidth
(PECL haru:0.0.1)
HaruFont::getTextWidth — 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.
Список параметров
- text
-
The text to measure.
Возвращаемые значения
Returns the total width of the text, number of characters, number of words and number of spaces in the given text.
Errors/Exceptions
Throws HaruException on error.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Генерация нетекстовых MIME форматов
- Haru PDF
- Функция HaruFont::getAscent() - Get the vertical ascent of the font
- Функция HaruFont::getCapHeight() - Get the distance from the baseline of uppercase letters
- Функция HaruFont::getDescent() - Get the vertical descent of the font
- Функция HaruFont::getEncodingName() - Get the name of the encoding
- Функция HaruFont::getFontName() - Get the name of the font
- Функция HaruFont::getTextWidth() - Get the total width of the text, number of characters, number of words and number of spaces
- Функция HaruFont::getUnicodeWidth() - Get the width of the character in the font
- Функция HaruFont::getXHeight() - Get the distance from the baseline of lowercase letters
- Функция HaruFont::measureText() - Calculate the number of characters which can be included within the specified width
Коментарии
404 Not Found