Allow Text.style to be any type

To allow a configuration object to be used rather than a string