Methods for working with styled text.