FlashDevelop + Haxe——使用嵌入字体
我已将 TTF 文件添加到我的 Haxe 项目中,它似乎嵌入到 swf 中,但我不知道如何让我的任何 TextFields 使用它。我怎样才能做到这一点?
更新:我有一个项目设置为与 本教程,我的字体没有显示(而他们的字体是)。这似乎与 此论坛帖子,但由于我无法访问生成的 AS3 代码,因此我无法告诉编译器发出带有该标志集的嵌入标记。如果有的话我能做什么?
I've added my TTF file to my Haxe project, and it appears to be embedded into the swf, but i have no clue how to get any of my TextFields to use it. How can i do that?
Update: I have a project set up as the same (for the purposes of this question) as this tutorial, and my font is not showing up (while theirs is). It seems to have to do with the issue outlined in this forum thread, but since i have no access to the AS3 code generated, i can't tell the compiler to issue an embed tag with that flag set. What can i do, if anything?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题似乎是我在加载字体之前设置了
TextField
的text
var。哎呀!The issue appears to be that I set the
text
var of theTextField
before having it load the font. Whoops!