int start = wordInstance.first();
for (int end = wordInstance.next(); end != BreakIterator.DONE; start = end, end = wordInstance.next())
{
String word = text.substring(start, end);
AttributedCharacterIterator attributedCharacterIterator =
new RichTextSpecProducer(data, resourceManager).computeText(this, word).createAttributedCharacterIterator();
TextLayout t = new TextLayout(attributedCharacterIterator, fontRenderContext);
double width = t.getVisibleAdvance();
final long wordMinChunkWidth = StrictGeomUtility.toInternalValue(width);
minimumChunkWidth = Math.max(minimumChunkWidth, wordMinChunkWidth);
}