Flex4中关于无法构建字体错误
2016-06-14 12:05
344 查看
在Flex4中做一个项目,出现一个错误烦恼了一段时间,
代码是这样的:
[Embed(systemFont="宋体",
fontName="myFont",
mimeType="application/x-font")]
提示错误:
无法构建字体“myFont”
转 换代码时出现意外错误:Cannot embed local font '宋体' 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.
通过一个网友的帮助,原来那是flex3中的方法,flex4中发生了变化
改过后的代码:
[Embed(systemFont="宋体",
fontName="myFont5",
mimeType="application/x-font-truetype",
embedAsCFF="false" )]
flex4中需要加上
mimeType="application/x-font-truetype";
embedAsCFF="false"
代码是这样的:
[Embed(systemFont="宋体",
fontName="myFont",
mimeType="application/x-font")]
提示错误:
无法构建字体“myFont”
转 换代码时出现意外错误:Cannot embed local font '宋体' 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.
通过一个网友的帮助,原来那是flex3中的方法,flex4中发生了变化
改过后的代码:
[Embed(systemFont="宋体",
fontName="myFont5",
mimeType="application/x-font-truetype",
embedAsCFF="false" )]
flex4中需要加上
mimeType="application/x-font-truetype";
embedAsCFF="false"
相关文章推荐
- 【转载】mybatis中关于传入参数parameterType
- JSTL fmt:formatDate 的输出时间日期格式
- 使用Espresso Test Recorder编写Android测试
- JQuery 拖拽div
- Tomcat 部署时报错Deployment failure on Tomcat 6.x
- Flex 鼠标移入组件/TextField变手型
- Session in Flex
- [BlazeDS]Exception occurred during serialization: org.hibernate.LazyInitializationException: failed to lazily initialize a colle
- SQL索引优化
- 正则表达式实例
- [Flex]itemEditEnd called multiple times
- [Flex]mx:TabNavigator自适应高度
- [Flex]TextArea滚动条总是跟在底端的方法
- [AIR/FLEX] WindowShade的样式
- Best Practices for Exception Handling
- 安装MySQL在最后的start service停住了处理方法
- 有时候xxx.pch文件全局引入头文件没有提示信息或者引入无效
- java数字类型转换
- 有关java对压缩文件的加密
- 完整java开发中JDBC连接数据库代码和步骤