Expose scan_pattern through tokenize
Throw CannotFit if not enough height

Rotated text inside table cells may not fit in the initial corner, but
there is room on the next line. This causes the wrap method to check if
there is room before throwing the CannotFit error.