Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 92667 программистов и 4732 робота. Сейчас ищут 1476 программистов ...
Приступая к работе

HaruPage::getTextWidth - Get the width of the text using current fontsize, character spacing and word spacing

Вернуться к: HaruPage

HaruPage::getTextWidth

(PECL haru >= 0.0.1)

HaruPage::getTextWidthGet the width of the text using current fontsize, character spacing and word spacing

Описание

float HaruPage::getTextWidth ( string $text )

Get the width of the text using current fontsize, character spacing and word spacing

Список параметров

text

The text to measure.

Возвращаемые значения

Returns the width of the text using current fontsize, character spacing and word spacing.

Ошибки

Вызывает исключение HaruException при ошибке.

Смотрите также

  • HaruPage::measureText() - Calculate the byte length of characters which can be included on one line of the specified width



Вернуться к: HaruPage

© 2026 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты
Разработка компании ODWR