是否可以将诸如 Arial Unicode 之类的 unicode 字体拆分为特定的语言块(例如泰语)?
我正在使用用户界面应用程序,并尝试实现各种语言。问题是文本显示仅支持导入到字体工具中的 256 字符字体。字体工具获取每个字符并将其转换为特殊的 bmp,供设备用作文本。
我的问题是我想要 Arial Unicode 字体中的特定语言。例如,我想从 Arial Unicode 中取出所有泰语字符,并将它们分成特殊的泰语字体(最多 256 个字符),以便我可以将其加载到程序中并进行转换。
这可能吗?
谢谢, 麦克风
I am working with an user interface application, and I am attempting to implement various languages. The problem is that text display only supports 256 character fonts that are imported into a font tool. The font tool takes each character and converts it to a special bmp for the device to use as a text.
My issue is that I would like a specific language out of the Arial Unicode font. For example, I want to take all the Thai language characters from Arial Unicode and separate them into a special Thai font (with a max of 256 characters) so that I can load this into the program and convert it.
Is this possible?
Thanks,
Mike
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可能的?当然,字体是(通常)开放规范的数据。使用哪个工具?我不知道。我想您可以启动 FontForge (或其他好的字体编辑器)并删除不需要的字形,或者按照您的意愿重新排列它们。
您还可以使用 TTX 反编译 TTF 字体,将其编辑为纯文本并再次重新编译。这样做的优点是易于编写脚本。
Possible? Certainly, fonts are data with (usually) open specification. Which tool to use? I don't know. I guess that you could launch FontForge (or other good font editor) and remove glyphs you don't need, or rearrange them as you wish.
Also you could decompile a TTF font with TTX, edit it as plain-text and recompile again. This has the advantage of being easily scripted.
是的,这是可能的,但这样做可能不太实际。
正如 liori 所指出的,FontForge 和 TTX 是您可以使用的两种可能的工具。
然而,Arial Unicode 是一种字体怪物。当我尝试反编译 5-6MB ttf 字体时,TTX 崩溃了,所以我认为它不适用于 Arial Unicode。我想使用 FontForge 删除不需要的字形也会很乏味。
我认为最好的方法是简单地使用较小的、脚本特定的 ttf 字体,而不是尝试从 Arial Unicode 中提取字形。
Yes it is possible but may not be very practical to do so.
As liori has pointed out, FontForge and TTX are two possible tools you can use.
However Arial Unicode is a monster of a font; I had TTX crashing on me when I tried to decompile 5-6MB ttf fonts so I don't think it will work on Arial Unicode.I imagine removing the unneeded glyphs using FontForge will be tedious as well.
Instead of trying to extract the glyphs from Arial Unicode I think the best way is to simply use smaller, script specific ttf fonts instead.