Fix alignment issue with wrapped text

This commit is contained in:
drdev
2014-05-27 00:32:13 +00:00
parent 0bdf7e83f1
commit f622a417f9

View File

@@ -273,7 +273,7 @@ public class TextRenderer {
else {
String currentLineText = text.substring(0, lastSpaceIdx);
if (!currentLineText.isEmpty()) {
pieceWidth = font.getBounds(text).width;
pieceWidth = font.getBounds(currentLineText).width;
addPiece(new TextPiece(currentLineText, inReminderTextCount > 0 || atReminderTextEnd), lineNum, x, y, pieceWidth, lineHeight);
consecutiveSymbols = 0;
}