turn enum TextStyleType into enum class

not sure why I did shy away from it earlier, guess it was the shere
amount of the changes needed. Not sure it is worth the effort...