我们怎样才能让粗体文本在Flash CS5中的经典动态文本(嵌入字体)中工作?
尽管我嵌入了 Verdana Bold,但它并没有显示得那么粗体。这曾经在 CS4 中运行过。所有字体均使用经典文本轮廓导出为 ActionScript。 FLA 中的字体是经典动态文本。
我可以使用 TLF 字体来实现这一点。这不是关于 TLF 字体的问题。我不想使用它们,因为它们给文件大小增加了很多不必要的膨胀。
我已经嵌入了字体。没有 HTML 文本,文本字段也不是由 AS 生成的 — 它们实际上位于舞台上。有四个独立的文本字段,除此之外它们都工作得很好。如果我使用设备字体,这整个事情也可以正常工作。
我有一个加载的 XML 文件,将文本输入到几个不同格式的文本字段中。每个都有正确嵌入的字体。
一切都工作正常,除了……大胆。我有一个嵌入的 Verdana Bold 字体,我已经检查过各种方式,但该字段中的文本显示为常规粗细。
我在 Mac OS 上的 Flash CS5 (AS3) 中使用经典动态文本。
这只是一个无法修复的错误吗?
即使该字段在舞台上,我是否也被迫编写 TextFormat?
In spite of my having embedded Verdana Bold, it does not show as bold. This used to work in CS4. All fonts are exported for ActionScript using Classic text outlines. Fonts in the FLA are Classic Dynamic Text.
I can get this working with TLF fonts. This is not a question about TLF fonts. I do not want to use them because they add a LOT of unnecessary bloat to the file size.
I have embedded the fonts. There is no HTML text, and the text fields are not generated by AS — they are physically on the stage. There are four separate text fields and otherwise they all work just fine. This whole thing also works fine if I use Device Fonts.
I've got a loaded XML file feeding text into several differently formatted text fields. Each one has a properly embedded font.
Everything is working fine except … BOLD. I have an embedded Verdana Bold font, which I have checked every which way, but the text in the field shows as regular weight.
I am using Classic Dynamic Text in Flash CS5 (AS3) on Mac OS.
Is this just a bug that cannot be fixed?
Am I forced to write a TextFormat even though the field is on the stage?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最简单的方法是取消选择“自动紧排”选项。现在,新设置的文本将保持其“粗体”格式。
Easiest way is to unselect the "Auto Kern" option. Now newly set text will keeps it's "bold" formatting.
试试这个。您提到您不是动态创建 TF,因此在所有 TF 上将它们设置为粗体并确保将它们设置为嵌入字体。像平常一样使用文本格式,任何设置为粗体的文本格式都会显示为粗体,而设置为粗体= false 的文本格式则不会。可能有更好的方法来做到这一点,也许动态创建 TF,但这应该可行。
Try this. You mentioned that you are not creating the TF's dynamically, so on all TF's set them to be bold and make sure they are set to embed fonts. Use a Text Format as you normally would and any text format you have set to bold will come out bold and those set with bold=false will not. There might be a better way to do this, perhaps creating the TF's dynamically, but that should work.