FlashDevelop + Haxe——使用嵌入字体

发布于 2024-09-17 19:52:27 字数 497 浏览 7 评论 0原文

我已将 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 技术交流群。

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

发布评论

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

评论(1

风启觞 2024-09-24 19:52:27

问题似乎是我在加载字体之前设置了 TextFieldtext var。哎呀!

The issue appears to be that I set the text var of the TextField before having it load the font. Whoops!

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