RT,看了cocos2dx的UIText的源码,好像没找到有哪个函数是设置行间距的吧
/** Sets the line height of the label
@warning Not support system font
@since v3.2.0
*/
void setLineHeight(float height);
/** Returns the line height of this label
@warning Not support system font
*/
float getLineHeight() const;
有这两个方法,不过是label的
label确实有,不过对应UIText怎么解决设置行高的问题呢,我的一个文本是用ccs做的,按你的意思我只能不在ccs上布局了,自己在程序用label控制了?