0
warning: incompatible embedded font 'TwoFontsITried' specified for spark.components::Label This component requires that the embedded font be declared with embedAsCFF=true

我正在使用Flex 4.6 with Apache Flex 4.9.1 Library.

代码如下:

/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";

@font-face {
    src:url("../fonts/DS-DIGII.TTF");
    fontFamily: "DS-DIGII";
    advancedAntiAliasing: true;
    embedAsCFF:true;
}

s|Label {
    font-size: 12;
    font-family: "DS-DIGII";
    /*text-decoration:line-through;*/
    color:#000000;
}

我已经尝试了在 SO 和其他类似社区中找到的所有不同解决方案。字体不会出现。

从这个链接我发现

Apache Flex 4.9.1 need optional dependencies for Embedded Font Support. tried to use dependencies for `Apache Flex 4.9.1 using Apache ANT 1.9.1` with this command

cd <flex.dir>/frameworks
ant thirdparty-downloads

我认为问题是因为这个新的 sdk 需要依赖项,但是将 sdk 和编译器从apache flex 4.9.1to更改flex 4.6为产生此问题

Invalid application descriptor: Unknown namespace: _http://ns.adobe.com/air/application/3.4

在上述情况下嵌入字体的任何简单解决方案?

4

1 回答 1

1

Alhamdulillah, problem is solved.. font embedded and guess was right, libraries were missing to embed font in my application.

I deleted Apache Flex 4.9.1 sdk and re-installed with the installer from here http://flex.apache.org/installer.html with Optional Embedded Font option selected along with compulsory SDK options

于 2013-06-27T00:02:04.397 回答