[bug] Persian/Arabic and RTL Texts

Lunacy version: 14.1
OS version: Windows 10

Bug Report – Lunacy 14.1

Version: 14.1
Platforms: Windows Desktop and Web Version
Operating System: Windows 10

Bug 1: Persian/Arabic Text Overflow in Right-Aligned and Justified Text Boxes

Description

When using Persian or Arabic text in a text box with Right Align or Justify alignment, the beginning of each line extends slightly outside the text box boundaries. This causes visual inconsistencies and layout issues during design work.

Steps to Reproduce

  1. Create a text box in Lunacy.

  2. Enter Persian or Arabic text.

  3. Set the text alignment to Right Align or Justify.

  4. Observe the beginning of each line.

Expected Result

All characters should remain fully contained within the text box boundaries.

Actual Result

A portion of the first word on each line protrudes outside the text box, causing text overflow.

Additional Information

A screenshot demonstrating the issue has been attached.


Bug 2: Incorrect Deletion Behavior for Arabic/Persian Diacritics

Description

When editing Persian or Arabic text containing diacritics such as Fatha (َ), Kasra (ِ), Damma (ُ), Shadda (ّ), and Tanween, pressing Backspace on a character that contains a diacritic removes both the diacritic and the base character simultaneously.

Steps to Reproduce

  1. Create a text box in Lunacy.

  2. Enter Persian or Arabic text containing diacritics (e.g., Fatha, Kasra, Damma, Shadda, or Tanween).

  3. Place the cursor immediately after a character that contains a diacritic.

  4. Press Backspace once.

Expected Result

The first Backspace press should remove only the diacritic mark while preserving the base character.

Actual Result

Both the diacritic mark and the associated character are deleted at the same time.

Additional Information

A video demonstrating the issue has been attached for easier reproduction and verification.

Bug 1:

Bug 2:

Thanks for flagging this. We’ll check it and get back to you as soon as we have an update.

Hi! Could you share a sample file with us?

Ideally, it should contain two text layers:

  • One with text that reproduces the first case.

  • Another with an example where placing the cursor in one or two specific positions reproduces the issue.

We’d also like to let you know in advance that bugs like this usually take some time to fix.