Use a 1-byte enum class for TextDirection