int[] (float startX, float x) { int startColumnInParent = visualColumnToParent(0); float parentStartX = startX - TextFragment.this.visualColumnToX(0, startColumnInParent); int[] parentColumn = TextFragment.this.xToVisualColumn(parentStartX, x); int column = parentColumn[0] - startColumnInParent; int columnCount = getVisualColumnCount(startX); return column < 0 ? new int[] {0, 0} : column > columnCount ? new int[] {columnCount, 1} : new int[] {column, parentColumn[1]}; }