Flash 动态 TextFiled 粗体字体问题

发布于 2024-08-17 00:23:09 字数 401 浏览 2 评论 0原文

我正在使用 AS3,并且我有一个动态文本文件。属性 字体名称“verdana” 尺寸“14” style "Bold"

如果没有值,则以 BOLD 显示正确的字体 如果我分配像这样的值,

 priceText.text=" Hello Wold"

它将不会显示正确的字体属性,我不会得到粗体样式:(

需要更改什么?

替代文本 http://www.freeimagehosting.net/uploads/c37867425c.jpg

am using AS3 and i have one dynamic text filed. The properties
Fontname "verdana"
size "14"
style "Bold"

it is shown the correct font in BOLD if there is no value
if i assign values like

 priceText.text=" Hello Wold"

It will not show the correct font properties am not getting the bold style :(

What need to change?

alt text http://www.freeimagehosting.net/uploads/c37867425c.jpg

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

梦里南柯 2024-08-24 00:23:10

设置 TextField 的格式时,需要设置 defaultTextFormat 属性。如果您不这样做,任何新文本都将默认恢复为旧设置。

When you set the formatting for the TextField you need to set the defaultTextFormat property. If you don't do this, any new text will default back to the old setting.

残花月 2024-08-24 00:23:10

我假设 PriceText 是舞台上已经存在的动态文本框。您必须更改其属性,

取消选中 AutoKern 框才能删除该属性
并使用“嵌入”按钮嵌入字体属性,如大写、小写、标点符号、数字

am assuming priceText is a dynamic text box already present on stage. you have to change its properties

uncheck the AutoKern box to remove that property
and use the Embed button to Embed the font properties like uppercase,lowercase,punctuation,numerals

我的黑色迷你裙 2024-08-24 00:23:10

我相信,如果您尝试创建一个具有正确属性的“TextFormat”实例..并在每次动态更改文本时在 TextField 上应用 TextFormat 实例(更改文本后应用它)..它将起作用!

祝你好运!

I believe that if you'll try to make a "TextFormat" instance with the correct properties.. and apply the TextFormat instance on the TextField each time you change the text dynamically (apply it after you change the text).. It will work!

Good Luck!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文