Changed TextOrientation, HorizontalTextAlignment and VerticalTextAlignment into enums