FLEX :: 嵌入日期字段字体
FLEX :: Embed DateField Font
TLDR;
如何在 flex 中为 DateField 嵌入字体?
问题:
我有一个使用 <mx:DateField>
的 Flex 程序。它的创建环境已切换为使用瘦客户端。
因此,我现在必须在应用程序中嵌入所有字体,否则所有字符都将替换为 ⛞ (注意:我找不到确切的符号,但它是一个空字符).
这是日历的样子没有嵌入代码瘦客户端之外。
Applciation.mxml
@font-face{
src: url("/Library/Fonts/Arial.ttf");
fontFamily: Arial;
embedAsCFF:true;
}
这 修复了 所有其他字体。 <mx:DateField>
除外。
无论嵌入什么字体,都会发生这种情况,即使 在 瘦客户端之外。
所以我对如何解决这个问题有点迷茫。必须嵌入字体以使日历变得可读,但这会破坏日历。
干杯,感谢您的帮助。
"The implications of this appear when you try to use MX controls with a font that was embedded with FTE support. In those cases, the text does not appear." - http://help.adobe.com/en_US/flex/using/WS0FA8AEDB-C69F-4f19-ADA5-AA5757217624.html
即
@font-face{
src: url("/Library/Fonts/Arial.ttf");
fontFamily: Arial;
embedAsCFF:true;
}
需要:
@font-face{
src: url("/Library/Fonts/Arial.ttf");
fontFamily: Arial;
embedAsCFF:false;
}
创建自定义组合并在运行时将 embedAsCFF false 嵌入您的字体
帮助在这里
http://www.stoimen.com/blog/2009/03/01/download-custom-flex-3-datechooser-2/
TLDR;
如何在 flex 中为 DateField 嵌入字体?
问题:
我有一个使用 <mx:DateField>
的 Flex 程序。它的创建环境已切换为使用瘦客户端。
因此,我现在必须在应用程序中嵌入所有字体,否则所有字符都将替换为 ⛞ (注意:我找不到确切的符号,但它是一个空字符).
这是日历的样子没有嵌入代码瘦客户端之外。
Applciation.mxml
@font-face{
src: url("/Library/Fonts/Arial.ttf");
fontFamily: Arial;
embedAsCFF:true;
}
这 修复了 所有其他字体。 <mx:DateField>
除外。
无论嵌入什么字体,都会发生这种情况,即使 在 瘦客户端之外。
所以我对如何解决这个问题有点迷茫。必须嵌入字体以使日历变得可读,但这会破坏日历。
干杯,感谢您的帮助。
"The implications of this appear when you try to use MX controls with a font that was embedded with FTE support. In those cases, the text does not appear." - http://help.adobe.com/en_US/flex/using/WS0FA8AEDB-C69F-4f19-ADA5-AA5757217624.html
即
@font-face{
src: url("/Library/Fonts/Arial.ttf");
fontFamily: Arial;
embedAsCFF:true;
}
需要:
@font-face{
src: url("/Library/Fonts/Arial.ttf");
fontFamily: Arial;
embedAsCFF:false;
}
创建自定义组合并在运行时将 embedAsCFF false 嵌入您的字体 帮助在这里 http://www.stoimen.com/blog/2009/03/01/download-custom-flex-3-datechooser-2/