【发布时间】:2016-01-18 23:03:11
【问题描述】:
我们开发了具有印地语和英语选项的 Adobe air 应用程序。对于翻译,我们使用 microsoft office Hindi Pack 并使用屏幕键盘以印地语书写。我们在应用程序中使用了 Arial 字体。
在某些客户端计算机中,当语言更改为印地语时,我们会看到方框代替文字。客户端计算机有可用的 Arial 字体。
我们已准备好在我们的应用程序中嵌入正确的 TTF 文件,但我们不确定成功的机器正在使用哪个字体文件,因为我们没有安装任何特殊字体。请帮忙。
== 更新===
发现有一个选项可以嵌入系统应用程序编译的字体。为此,我使用了以下代码,但它不起作用:
[Embed(systemFont="arial", fontName="myArial",
mimeType="application/x-font", advancedAntiAliasing="true")]
protected var fontClass:Class;
然后在css文件中添加
global
{
font-family: "myArial";
}
但我遇到了错误:
Description Resource Path Location Type
exception `during transcoding: Cannot embed local font 'arial' as CFF. The CSS @font-face 'local()' syntax is not supported. Please specify a path directly to a font file using the 'url()' syntax. For [Embed] syntax the 'systemFont' attribute is not supported. Please specify a path directly to a font file using the 'source'` attribute. HondaLMS.mxml /HondaLMS/src line 81 Flex Problem
和
Description Resource Path Location Type
unable to build font 'myArial' HondaLMS.mxml /HondaLMS/src line 81 Flex Problem
【问题讨论】:
标签: actionscript-3 apache-flex fonts flex4.5