# RTL (Persian / Arabic) Text Support for Defold 🎮

**URL:** <https://forum.defold.com/t/rtl-persian-arabic-text-support-for-defold/82091>\
**Category:** The Defoldmine\
**Created:** [December 14, 2025, 3:50pm UTC](https://forum.defold.com/t/rtl-persian-arabic-text-support-for-defold/82091 "2025-12-14T15:50:56Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [February 3, 2026, 10:39am UTC](https://forum.defold.com/t/rtl-persian-arabic-text-support-for-defold/82091/21 "2026-02-03T10:39:32Z")

</div>

> [@HHH](#):
>
> same words seem to be there but the ordering has changed

I don’t see a difference from your google text and our ingame text. At least not any reordered words? Can you specify more specifically?

I think if you would put it in a google sheet, and use the same font, it’s easier for you to spot any differences.

---

<div class="post-metadata">

**Author:** ![thawri](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/thawri/32/24046_2.png) [@thawri](https://forum.defold.com/u/thawri)\
**Post date:** [February 3, 2026, 11:51am UTC](https://forum.defold.com/t/rtl-persian-arabic-text-support-for-defold/82091/22 "2026-02-03T11:51:04Z")

</div>

I haven’t had a chance to check the text system in the new version yet.  
But one of the challenges of displaying RTL text is that, when the text is multi-line, the line order is reversed.  
But in your screenshots, I don’t see any problem.

---

<div class="post-metadata">

**Author:** ![HHH](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/hhh/32/34230_2.png) [@HHH](https://forum.defold.com/u/HHH)\
**Post date:** [February 3, 2026, 12:26pm UTC](https://forum.defold.com/t/rtl-persian-arabic-text-support-for-defold/82091/23 "2026-02-03T12:26:29Z")

</div>

Thanks both, yes that’s what I was referring to, I wasn’t sure if the line order was correct in the multiline version. Thanks for the clarification, it looks like everything’s all working my side now.

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [February 3, 2026, 8:18pm UTC](https://forum.defold.com/t/rtl-persian-arabic-text-support-for-defold/82091/24 "2026-02-03T20:18:38Z")

</div>

@thawri Can I ask for your expertise in this example, if this is correct? And is it better/more convenient to display RTL with Pivot on the other side?

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/3/7/376c3ad12c90ec76a91e1024c31f9f6f12f5783e.png)  
 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/b/d/bd6e1777e215cac77c1ba7456eed058965fe5fb4.png)

I can just guess the lines are not reversed, because “RTL” and “LTR” are in the bottom line - so it should be actually, that those are in the line above (reversed, from bottom to the top)?

---

<div class="post-metadata">

**Author:** ![thawri](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/thawri/32/24046_2.png) [@thawri](https://forum.defold.com/u/thawri)\
**Post date:** [February 4, 2026, 4:07pm UTC](https://forum.defold.com/t/rtl-persian-arabic-text-support-for-defold/82091/25 "2026-02-04T16:07:59Z")

</div>

yes, it is correct.  
and it is better to set East as pivot for RTL texts.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [February 4, 2026, 4:08pm UTC](https://forum.defold.com/t/rtl-persian-arabic-text-support-for-defold/82091/26 "2026-02-04T16:08:48Z")

</div>

Hopefully soon, we can change the pivot at runtime, in order to more easily switch languages as well 🙂

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [February 8, 2026, 4:44pm UTC](https://forum.defold.com/t/rtl-persian-arabic-text-support-for-defold/82091/27 "2026-02-08T16:44:38Z")

</div>

The localization example is now on the [Defold examples](http://defold.com/examples) :

> **[Localization (RTL/LTR)](https://defold.com/examples/gui/localization/)**
>
> This example demonstrates how to handle localization in games, Unicode text layout, RTL rendering, and runtime font switching for localization.

Btw, this is a first time we made an example with Lua modules being used. This was meant to simplify understanding the code and modularize it. I’d be very fond of any feedback! 😉

[Previous page](https://forum.defold.com/t/rtl-persian-arabic-text-support-for-defold/82091.md?page=1)
