HaruFont::getUnicodeWidth
(PECL haru >= 0.0.1)
HaruFont::getUnicodeWidth — Get the width of the character in the font
Description
int HaruFont::getUnicodeWidth
( int
$character
)Get the width of the character in the font.
Parameters
-
character
-
The code of the character.
Return Values
Returns the width of the character in the font.
Errors/Exceptions
Throws a 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