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

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