One laid-out line. charEdges has text.length + 1 display-space x boundaries: charEdges[i] is the left edge of char i, the final entry the line's right edge. That is enough to build sub-line highlight quads.
text.length + 1
charEdges[i]
i