Sprite Kit 和位图字体 [英] Sprite Kit and bitmap fonts
问题描述
我目前正在使用 Cocos2D,但也在阅读新的 iOS Sprite Kit 文档.但是,我无法找到如何使用位图字体.使用我的 .fnt
文件有什么技巧吗?
I am currently using Cocos2D, but also reading new iOS Sprite Kit docs. However, I'm not able to find how to use bitmap fonts. Is there any trick to use my .fnt
files?
推荐答案
Sprite Kit 尚未正式支持位图字体,因此您必须实现自己的或使用以下两个选项之一:
Sprite Kit doesn't officially support bitmap fonts yet, so you will either have to implement your own or use one of the two options below:
1) BMGlyph - http://www.bmglyph.com/tutorials-spritekit-位图字体/
1) BMGlyph - http://www.bmglyph.com/tutorials-spritekit-bitmap-font/
2) Glyph Designer - https://71squared.zendesk.com/hc/en-us/articles/200037472-Using-Glyph-Designer-1-8-with-Sprite-Kit
2) Glyph Designer - https://71squared.zendesk.com/hc/en-us/articles/200037472-Using-Glyph-Designer-1-8-with-Sprite-Kit
两者都很棒,可以完成工作.我个人更喜欢 BMGlyph,因为您可以访问代码,而且代码对于 OS X 和 iOS 是相同的.
Both are great and will get the job done. I personally prefer BMGlyph because you get access to the code and the code is the same for OS X and iOS.
这篇关于Sprite Kit 和位图字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!