x = textWidth(line, lineIndex, Math.min(line.length(), lineOffset), gc) + leftMargin;
x = getTextPosition(line, lineIndex, Math.min(line.length(), lineOffset), gc) + leftMargin;
int getXAtOffset(String line, int lineIndex, int lineOffset) {	int x;	if (lineOffset == 0 && isBidi() == false) {		x = leftMargin;	}	else {		GC gc = new GC(this);				x = textWidth(line, lineIndex, Math.min(line.length(), lineOffset), gc) + leftMargin;		gc.dispose();		if (lineOffset > line.length()) {			// offset is not on the line. return an x location one character 			// after the line to indicate the line delimiter.			x += lineEndSpaceWidth;		}	}	return x - horizontalScrollOffset;}