您好,我遇到了使用cclabelttf调整cocos2d-x中行间距的问题。我只想确认一下,我们是否有任何属性可以更改cocos2d-x中的行距
发布于 2014-05-03 13:07:56
我最近想减少我的行距(应用程序范围,而不是单个标签),并在这里写下了我的工作:http://devdiary.arcticempire.ca/2014/05/02/dev-diary-31-cocos2d-x-ttf-line-spacing/
简而言之。获取Apple字体工具套件,然后
ftxdumperfuser -t hhea -A d font.ttf # export font header to XML
[Edit XML - set lineGap to 0 and adjust ascender and descender as you like.
Test with all characters you'll want to print]
ftxdumperfuser -t hhea -A f font.ttf # import XML to font header如果你使用的是安卓系统,那么在Cocos2dxBitmap.java中,你应该把“顶部”改为“上升”,将“底部”改为“下降”。
https://stackoverflow.com/questions/21728616
复制相似问题