RunUtils::CalculateOffsetMeasureRange

Calculate the range that will measure to the given index, based on the given range and text direction