fix label text formatter right alignment

This commit is contained in:
Ce Zheng 2016-07-19 23:12:56 +09:00
parent b5de8ba0ea
commit 35b848e842
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ bool Label::multilineTextWrap(std::function<int(const std::u16string&, int, int)
nextLetterX += _horizontalKernings[letterIndex + 1];
nextLetterX += letterDef.xAdvance * _bmfontScale + _additionalKerning;
tokenRight = letterPosition.x + letterDef.width * _bmfontScale;
tokenRight = nextLetterX / contentScaleFactor;
}
nextChangeSize = true;