Forum und email

SWFFont->getWidth()

(PHP 4 >= 4.0.5)

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

Descrierea

SWFFont
float getWidth ( string $string )
Avertizare

Această funcţie este EXPERIMENTALĂ. Comportamentul acestei funcţii, denumirea sa şi orice alte aspecte documentate în privinţa acestei funcţii pot să fie modificate fără preaviz într-o versiune viitoare a PHP. Utilizaţi această funcţie la propriul risc.

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.

Vedeţi de asemenea