encode

Lines to bytes for TextStore: text, corners, and each character's span.