offset is relative to the document, not the line.