利用php怎么样生成支持不同中文字体的swf文件
利用php怎样生成不同字体的swf文件。
在以下例子中,生成的swf只支持英文字体,中文字体不支持:
<?php
$f = new SWFFont( '_sans' );
$t = new SWFTextField();
$t->setFont( $f );
$t->setColor( 0, 0, 0 );
$t->setHeight( 400 );
$t->addString( 'Hello World' );
$m = new SWFMovie();
$m->setDimension( 2500, 800 );
$m->add( $t );
$m->save( 'hello.swf' );
?>
请问怎么样通过php生成支持不同中文字体的swf文件?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

$str = iconv('UTF-8', 'GB2312', $username);
UTF-8环境下用这个,其他同理!