Flash 中的变音符号
我的问题可能是一个愚蠢的问题,但我无法帮助自己 - 我创建了一个带有动态插入文本字段的 Flash 影片,它从文件中加载其文本,但我在查看其中的 ľščťžýáíé 等变音符号时遇到问题。 我尝试更改字体,但没有帮助。 有谁能够帮助我?
my question is maybe a dumb one, but i cant help myself - i created a flash movie with a dynamicly inserted textfield, that loads its text from a file, but i have problems viewing diacritics like ľščťžýáíé in it. I tried to change font, but it didnt help. Can anybody help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,您必须确保字体正确嵌入,只需在文本字段中输入这些字符就可以轻松测试这一点,如果它们在导出时出现,您就可以开始了。
至于读取文本文件,事情稍微复杂一些,但也复杂不了多少。 你需要做的是确保你正在阅读的文本文件是UTF8格式的,任何合理的文本编辑器都应该能够保存它(天啊,甚至记事本现在也能做到这一点)。
您可以使 Flash 尊重您的本地字符编码,但这很容易出错,并且如果使用不同编码的人查看您的应用程序,则可能会中断。 所以选择 UTF8,flash 可以轻松处理它。
Firstly you must make sure that the font is embedded properly, this can be tested easily by just typing those very characters into the textfield, and if they show up on export you're good to go.
As for reading the textfile things are slightly more complex, but not by much. What you need to do is to make sure that the textfile you are reading is in UTF8, any reasonable text editor should be able to save this (hell, even notepad does it now).
You can make flash respect your local character encoding, but that is very error prone and will likely break if someone with a different encoding views your app. So go for UTF8, flash handles that with ease.
为了使用它们,您需要将它们嵌入到您的应用程序中。 最简单的方法是在舞台上创建一个新的文本字段,然后在属性面板下嵌入这些字符(您需要为您正在使用的特定字体嵌入它们)。 只需在视图之外创建文本字段,就可以开始了。
In order to use those you'll need to embed them into you application. The easiest way is to create a new TextField on your stage, then under the properties panel, embed those characters (You'll need to embed them for the specific font you are using). Just create your TextField out of view, and you sould be good to go.