Sprite Kit和位图字体 [英] Sprite Kit and bitmap fonts

查看:458
本文介绍了Sprite Kit和位图字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用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?

推荐答案

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

1) BMGlyph - http://www.bmglyph.com/tutorials-spritekit-bitmap-font/

2)字形设计器 - https://71squared.zendesk.com/hc/en-us/articles/200037472-Using-Glyph-Designer-1-8-with-Sprite-套件

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆