CalculatedStyle style = ilb.getStyle();
if (containsWholeIlb) {
offset = fndTxt.getEnd();
} else {
for (offset = fndTxt.getStart(); offset < fndTxt.getEnd(); offset++) {
int w = getTextWidth(lc, style, txt.substring(fndTxt.getStart(), offset + 1));
if (w + x + fndTxt.getX() > e.getX()) {
break;
}
}