1) This link suggests to set contentSize (height =0) in order to achieve the text-wrapping effect for label.
2) Other option is RichText. Do, I really need RichText if I simply wants to have text-wrapping. I’m creating cards which have varied length of texts. So, I was wondering if I can simply use Label then why to use an extra library(RichText) which I am not using anywhere else in the code.
Also, how to get the height of the final wrapped text? want to use this to dynamically set the content size height of my card.
I’ve the same doubt as RichText: how to get the real content size?
It’s sad to know that RichText didn’t work for this simple problem.
I wonder why are formatText or getVirtualContenSize even made. Cocos2d-x Tests also do not have their usage.