support storing and replaying the monospace attribute in textbuffer