Cocos2d font : How to create .fnt file for CCLabelBMFont? ( Any free bitmap font creation tool ? )

前端 未结 1 1292
星月不相逢
星月不相逢 2021-02-11 02:19

Cocos2d: How to create .fnt file for font texture atlas?

Any free bitmap font creation tool?

Now I have all single character image.. and created texture grid in

相关标签:
1条回答
  • 2021-02-11 02:31

    As far as I know there's no tool that does exactly what you want. Since the .fnt file is simply an XML file you can create it manually.

    The most widely used free bitmap font tool that works on Macs is Hiero. I wrote a Hiero tutorial that explains how to install, use and workaround some of its bugs.

    Glyph Designer is a far better tool however. It costs $29.99 and is well worth it.

    But as far as I know neither tool supports the creation of a fnt file from an existing atlas texture.

    0 讨论(0)
  • 2021-02-11 02:43

    I'm using bmGlyph for Mac. It costs 9.99$ in AppStore but it's working and it fulfills my needs so I think it's worth it. I don't know how it is in comparation with Glyph Designer, but it's at least a lot cheaper.

    With bmGlyph you can import any font and then adjust colors, shadows, gradients, outline and a lot more. It has Cocos2D-support and it exports your fonts to .png and .fnt that you can load in cocos2D using CCLabelBMFont.

    0 讨论(0)
提交回复
热议问题