SWT Text Block Refactoring

Pulled out code into methods to reduce complexity of set_styles method in TbPainter module.

Ideally, this should not break anything but I am not sure. I ran samples to double check and tests do not break.

Built off the Strikethrough PR so can ignore those changes and the changes to the spec test.