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

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::getTextWidth — Get 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