Flash CS5 搞砸了我所有的文本字段 - 我该如何纠正这个问题?
我有一个使用 Flash CS4 构建的 Actionscript 项目。我使用以下方法嵌入了字体:
[Embed(source="/bin/assets/fonts/MyriadPro-Regular.otf", fontWeight="normal", fontFamily="Myriad Pro")]
然后在我的 TextFields 中的整个应用程序中,我将 embedFonts 设置为 true antialiastype 以高级并设置文本字段的厚度属性。并从样式表设置字体系列。这一切都完全按照我的预期进行,没有任何问题并且经过了数月的开发。
我刚刚升级到 CS5 并发布,但我的文本根本没有呈现。我能够通过从文本字段中删除 embedFonts = true 来解决此问题,但这使我根本无法控制厚度。
我到处搜索,有谁知道现在在 CS5 中执行此操作的正确方法是什么?我尝试过将字体直接嵌入到 CS5 IDE 中,但仍然没有粗细控制。
预先感谢您的任何帮助 - 我的应用程序中有大量的文本字段,现在都被 ganked 了。谢谢阿多比。
乙
I have an Actionscript project that I was building using Flash CS4. I embedded a font using the follow:
[Embed(source="/bin/assets/fonts/MyriadPro-Regular.otf", fontWeight="normal", fontFamily="Myriad Pro")]
Then throughout my application in my TextFields I would set embedFonts to true antialiastype to advanced and set the thickness property of the text field. And setting the font-family from a stylesheet. This was all working exactly as I expected it would with no issues whatsoever and months of development.
I just upgraded to CS5 and published and none of my text is rendered at all. I was able to resolve this by removing the embedFonts = true from the textfields, but this leaves me with no control over the thickness at all.
I searched everywhere, does anyone know what the proper way to do this in CS5 is now? I've tried embedding my font directly within the CS5 IDE but still no thickness control.
Thanks in advance for any help - I've got tons of textfields throughout my app that are all ganked right now. Thanks Adobe.
b
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我想出了如何做到这一点,以便它可以与 CS5 一起使用。对于任何对此感兴趣的人来说,我所做的就是让字体像升级前一样渲染。
我没有从动作脚本本身嵌入,而是使用 CS5 IDE 中的文本>嵌入字体对话框。选择并嵌入我想要的字符,然后选择将其导出为动作脚本,并将其命名为“MyriadPro”,驼峰式。
接下来,在我的动作脚本类中,我使用 Font.registerFont(MyriadPro) 在那里注册字体。
在 CSS 样式表中,字体系列引用是驼峰式命名,但之间有一个空格。 - 所以在这种情况下,它是字体系列:“Myriad Pro”
我现在可以嵌入字体并使用厚度和所有其他预期的设置。
我希望这可以帮助其他可能遇到此问题的人 -
b
I figured out how to do this so it works with CS5. For anyone interested here is what I did to get the fonts to render as they did before the upgrade.
Instead of embedding from the actionscript itself I used the text>embed fonts dialogue within the CS5 IDE. Selected and embedded the characters I wanted, then chose to export this for actionscript and gave it the name 'MyriadPro' camel-cased.
Next within my actionscript classes I used Font.registerFont(MyriadPro) to register the font there.
Within the css stylesheet the font-family reference is the camel case name, but with a space between. - So in this instance it's font-family:"Myriad Pro"
I'm now able to embedFonts and use thickness and all other settings as expected.
I hope this helps others who might run into this -
b
这有问题。您不能将某些特殊字符包含在“还包含这些字符”框中。 (即:Unicode 范围 U+2018-U+2027)。当您粘贴到该字段时,Flash 不会增加估计的字形。
There's a problem with this. You cannot include certain special characters into the "Also include these characters" box. (ie: the Unicode ranges U+2018-U+2027). When you paste into that field, Flash does not increment the estimated glyphs.
这个教程和解释是我发现的关于如何嵌入字体(新方法)的最好的教程和解释是 Flash CS5。它确实与CS4和以前的版本不同。
使用嵌入字体时遇到问题Flash CS5 中的 HTML 文本?
This tutorial and explanation is the best I have found about how to embed fonts (the new way) is Flash CS5. It really is different from CS4 and previous versions.
Having trouble with embedded fonts and HTML text in Flash CS5?