Flex 4 - 使用 .pfm/.pfb 字体
我刚刚切换到 Flash Builder 4 & Flex 4 SDK,似乎不再可能通过嵌入或将其用作系统字体来使用 .pfm/.pfb 字体。
我不断收到错误消息,Google 找不到任何人有同样的问题。
我尝试了几种方法:
- 复制/粘贴使用 Flex 3 SDK 运行的 [Embed] 语句
- 安装字体,然后尝试在 CSS 声明中简单地通过名称来调用它,而不嵌入它;似乎适用于所有 .ttf 和 .otf 系统字体,但不适用于 .pfm/.pfm 字体
- 使用嵌入字体的 Flash 生成的 swf
到目前为止,这些似乎都不起作用。
有人知道如何实现这一目标吗?
实际上,我不在乎使用系统字体而不嵌入它,只要它有效即可。
如果有人能帮助我,我将非常感激,我完全陷入困境,无法使用其他字体。
I just switched to Flash Builder 4 & Flex 4 SDK, and it seems it's no longer possible to use a .pfm/.pfb font, either by embedding it or using it as a system font.
I keep getting error messages, and Google can't find anybody having the same issue.
I tried several methods:
- copy/pasting the [Embed] statement which was working using Flex 3 SDK
- installing the font and then try to simply call it by its name in a CSS declaration without embedding it ; seems to work for every .ttf and .otf system fonts, but not for .pfm/.pfm ones
- using a Flash-generated swf which embeds the font
So far none of these seems to work.
Has anybody got an idea on how to achieve this?
I actually don't care using a system font without embedding it as long as it works.
I'll be really grateful if somebody could help me on this, I'm totally stuck and cannot use another font instead.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我收到以下错误:
错误:转码过程中出现异常:无法转码 ../path/to/font.pfb
我必须添加 embedAsCFF=false 并且它现在可以工作了!
I was getting following errror:
Error: exception during transcoding: Unable to transcode ../path/to/font.pfb
I had to add embedAsCFF=false and it works now!
看看这个文档...
http://blogs.adobe.com/flexdoc/fonts.pdf
Have a look into this document.. .
http://blogs.adobe.com/flexdoc/fonts.pdf