Forum und email

SWFFont->getWidth()

(PHP 4 >= 4.0.5)

SWFFont->getWidth() — Returns the string's width

Описание

SWFFont
float getWidth ( string $string )
Warning

Эта функция является ЭКСПЕРИМЕНТАЛЬНОЙ. Поведение этой функции, ее имя и относящаяся к ней документация могут измениться в последующих версиях PHP без уведомления. Используйте эту функцию на свой страх и риск.

swffont->getwidth() returns the string string 's width, using font's default scaling. You'll probably want to use the swftext() version of this method which uses the text object's scale.

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