Sprite Kit and bitmap fonts

假如想象 提交于 2019-11-27 08:04:31

问题


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?


回答1:


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-bitmap-font/

2) Glyph Designer - https://71squared.zendesk.com/hc/en-us/articles/200037472-Using-Glyph-Designer-1-8-with-Sprite-Kit

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.



来源:https://stackoverflow.com/questions/18954144/sprite-kit-and-bitmap-fonts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!