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.1
to更改flex 4.6
为产生此问题
Invalid application descriptor: Unknown namespace: _http://ns.adobe.com/air/application/3.4
在上述情况下嵌入字体的任何简单解决方案?