问题
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