取り急ぎ調べただけなのでメモ。
表題の件、原因はCocos2dxBitmap.java
の divideStringWithMaxWidth
関数と思われる。
if (tempWidth >= pMaxWidth) {
final int lastIndexOfSpace = pString.substring(0, i).lastIndexOf(" ");
if (lastIndexOfSpace != -1 && lastIndexOfSpace > start) {
/* Should wrap the word. */
strList.add(pString.substring(start, lastIndexOfSpace));
i = lastIndexOfSpace;
} else {
...
}
...
}
長さがオーバーしている場合は末尾の半角スペースで区切ってそこで1行としている(っぽい)。
おそらく英文想定の実装だと思われる。
3系だとこの処理はなくなっている。
https://github.com/cocos2d/cocos2d-x/blob/v3/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxBitmap.java