Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个可供中国用户使用的 Flash 和 PHP 应用程序。为了让应用程序显示所有必需的字符,目前我不得不在我的 SWF 中嵌入一个巨大的中文字体文件(使 SWF 超过 8MB)。
字体文件有数万个字符,但我实际上只使用了几百个。我使用的实际字符都可以从 PHP 中、各种 XML、JSON 和数据库源中获得。
PHP 中有没有办法生成仅包含我实际使用的字符的中文 TTF 子集?正在使用的字符集会定期更改,因此遗憾的是手动解决方案不实用。
尝试这个:
http://www.4real.gr/technical-documents-ttf-subset.html
尝试页面底部引用的 TTFv2.zip。