StyledTextBidi bidi = getStyledTextBidi(line, lineOffset, gc); width = bidiTextWidth(line, 0, length, 0, bidi);
StyledTextBidi bidi = getStyledTextBidi(line, lineOffset, gc, null); width = renderer.bidiTextWidth(line, 0, length, 0, bidi);
int textWidth(String line, int lineIndex, int length, GC gc) {	int lineOffset = content.getOffsetAtLine(lineIndex);	int lineLength = line.length();	int width;	if (lineLength == 0 || length > lineLength) {		return 0;	}		if (isBidi()) {		StyledTextBidi bidi = getStyledTextBidi(line, lineOffset, gc);		width = bidiTextWidth(line, 0, length, 0, bidi);	}	else {		StyledTextEvent event = getLineStyleData(lineOffset, line);		StyleRange[] styles = null;		if (event != null) {			styles = filterLineStyles(event.styles);		}		width = textWidth(line, lineOffset, 0, length, styles, 0, gc, gc.getFont().getFontData()[0]);	}	return width;}