List< String> lines = new ArrayList< String>();
for (String line : textLines) {
//Log.info("font: "+font.getWidth("11"));
int lineLengthInPixel = font.getWidth(line);
if (lineLengthInPixel > width) {
lines.addAll(new TextBreak(line, width, font).split());
} else {
lines.add(line);
}
}
return lines.toArray(new String[0]);