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

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

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