Replace enum of TextStyle.java with class structure.