Flash字体嵌入问题
我在一个项目中遇到了有线问题。我正在嵌入 Arial 字体,因为项目是多语言的。如果我在我的一台开发机器上构建此项目,字体会成功嵌入,但在任何其他机器上,项目会成功发布,没有任何警告,但字体不会嵌入到 SWF 中。
注意:项目代码库相当大。
到底什么可以阻止flash嵌入字体呢?有什么想法吗?
谢谢, 巴韦什·巴加迪亚
I am facing a wired problem with a project. I am embedding Arial font as project is multi-lingual. If I build this project on one of my development machine, Font gets embedded successfully but in any of other machine, project successfully gets published without any warning but font just dont get embedded in SWF.
Note : Project code base is quite big.
What on the earth can prevent flash embedding font ? any ideas guys?
Thanks,
Bhavesh Bagadiya
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可能需要检查以确保其他计算机上安装了完全相同的字体。 Arial 有 unicode 和非 unicode 版本。您随时可以打开“字体映射”对话框,查看 Flash 是否自动为您执行一些您可能没有意识到的操作。我不确定该对话框在 PC 上的位置,但在 OS X 下,您可以在主应用程序菜单下找到它(Flash > 字体映射)。
You may need to check to make sure that you have EXACTLY the same font installed on those other machines. There are unicode and non-unicode versions of Arial out there. You can always pull up the Font Mapping dialog and seeing if Flash is automatically doing something for you that you may not be aware of. I'm not sure where that dialog is on the PC, but under OS X you can find it under the main application Menu (Flash > Font Mapping).
默认的 arial 字体仅包含英语。嵌入 arialuni.ttf,大小为 22MB,包含所有语言。
The default arial font contains only the English language. Embed arialuni.ttf which is 22MB in size and contains all languages.
我很久以前就找到了这个问题的解决方案,但只是再次偶然发现了这个问题,所以回复这对其他人有帮助。
主要原因是内存,如果在编译过程中内存不足,flex 构建器将停止构建代码或/和嵌入。通过以下参数增加内存可以解决问题。
FlexBuilder.exe -vmargs -Xms256M -Xmx512M
注意:我们观察到的一个奇怪现象是,增加内存并不总是解决方案。它需要机器的特定内存设置。在某些机器上,即使在 256M 上也能顺利运行,而有些机器则需要 512M,可能取决于 RAM 上的其他程序负载。
I found solution long ago for this but just stumbled upon this question again so replying so this can be helpful to others.
Main reason was memory, flex builder stops building code or/and embedding if it runs out of memory during compilation process. increasing memory via following arguments solves problem.
FlexBuilder.exe -vmargs -Xms256M -Xmx512M
Note : One strange observation we had was that its not always solution to increase memory. It requires specific memory settings for machine. on some machine, it runs smoothly even on 256M while some needed 512m, may be depends on other program load on RAM.