rtl language support in playcanvas – write arabic, urdu, farsi in playcanvas

Here is a solution we use to write text in RTL languages like arabic, urdu, farsi inside playcanvas like this example:


1- **Upload** your arabic font file to playcanvas assets. we use this font [neo-sans-arabic-regular]

2- Selected the uploaded font and edit the **Font characters** value in the right side panel at the bottom :

3- Remove all the values in the font characters field and replace it with the following value :

And click the button “**PROCESS FONT**”

4- Next you need to convert you text direction using this [tool](http://www.arabic-keyboard.org/photoshop-arabic/) an
so a text like this for example ” الطريق الاول ” will be ” ﻝﻭﻻﺍ ﻖﻳﺮﻄﻟﺍ “. so change the text direction using the tool and copy it and paste it in the text field for your playcanvas element.

**Thats it your RTL text should appear correctly.**



Leave a Reply

Your email address will not be published. Required fields are marked *