Use constants for ST_TextDirection values

Change-Id: I2c6576f8142a8fe3808a156f2047fe425f769cd9