feature requesthelp wantedlayouttext
Description
Justification of Arabic text is very unique. Usually, they do not add whitespace between words. Instead, Arabic text is justified using two ways:
- Using more "compressed" or "stretchy" variant glyphs. OT have a tag called
jaltto provide these alternatives. - Stretching the words by inserting Tatweel between letters.
Example of justified Arabic text from ref. Blue shows the swash Kaf, purple is used for the final elongated Alif, orange marks the Returning Yeh (Bari-Ye), and yellow highlights the use of Tatweels inserted.

Exmaple of Tatweel insertion:

Ref: