Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...

When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

The SWFFont class

(PHP 5 <= 5.3.0, PECL ming SVN)


The SWFFont object represent a reference to the font definition, for us with SWFText::setFont() and SWFTextField::setFont().

Class synopsis

SWFFont {
/* Methods */
__construct ( string $filename )
float getAscent ( void )
float getDescent ( void )
float getLeading ( void )
string getShape ( int $code )
float getUTF8Width ( string $string )
float getWidth ( string $string )

Table of Contents

PHP Manual