How to add " text direction and Align Text "

Dear All

Sometimes We are Use Persian Language in Spark . we are need options to Set Text Direction ( left-to-right and right-to-left ) and Align Text ( Right or Left ) . Please help me

Bests