SWFFont クラス
導入
SWFFont オブジェクトは、フォント定義への参照を表します。 これは SWFText->setFont および SWFTextField->setFont で使用します。
クラス概要
SWFFont
SWFFont
{
/* メソッド */
SWFFont __construct
( string $filename
)
float getAscent
( void
)
float getDescent
( void
)
float getLeading
( void
)
string getShape
( int $code
)
float getUTF8Width
( string $string
)
float getWidth
( string $string
)
}目次
- SWFFont->__construct — フォント定義を読み込む
- SWFFont->getAscent — フォントの ascent (ベースライン上部の高さ) あるいは取得できない場合は 0 を返す
- SWFFont->getDescent — フォントの descent (ベースライン下部の深さ) あるいは取得できない場合は 0 を返す
- SWFFont->getLeading — フォントの leading (行間) あるいは取得できない場合は 0 を返す
- SWFFont->getShape — 指定した文字のグリフを文字列で返す
- SWFFont->getUTF8Width — このフォントにおける指定した文字列の幅を計算する
- SWFFont->getWidth — 文字列の幅を返す
SWFFont
There are no user contributed notes for this page.
