Type tool and library, 2026

كشيدة

Kashida

Kashida100 Kashida110 Kashida120 Kashida130 Kashida140 Kashida150
شبنم, dew, with 0 to 4 units of kashida after the sheen. One unit is the font's own tatweel, 0.21 em.

Latin type justifies a line by widening the spaces. Arabic script can also widen a word, by drawing out the join between two letters. Here both are set by the same optimal line breaker and measured, so the comparison is fair.

I One paragraph, two settings

Left
A · WhitespaceFirst fit, spaces only
B · KashidaKnuth-Plass, with kashida
Set your own text

Grey: the space between two words. Red: the space is part of a river, a channel of white running three lines or more. In the Naskh setting, red strokes are kashidas; in Nastaliq, red letters have taken their long form; in the Latin one, a red word has been widened on the font's width axis.

II The ghazal, set as a manuscript sets it

In a copied ghazal each half-line fills a box of the same width, and the scribe gets it there by drawing out joins. This is Mah Laqa Bai Chanda's Na gul, with Sama's translation, set that way: every red stroke is a kashida, placed by rank.

The ghazal Na gul by Mah Laqa Bai Chanda, five couplets, each half-line stretched with red kashidas to fill an equal box, with English translation under each couplet.

Download the specimen (A4, PDF) or as SVG

III What the numbers say

Line chart: standard deviation of word-space widths against measure, for first fit, Knuth-Plass, and Knuth-Plass with kashida, in Arabic script and Latin. The kashida line is lowest at every measure.

IV Which join is stretched

The W3C's Arabic layout requirements (§7.2.5) ask for preferred joins, no more than one kashida in a word, none stacked above another, and restraint. They give no ranking. The ranking typesetters use is older; LibreOffice keeps it, citing khtt.net. Type a word to see its joins ranked.

  1. 1 after a tatweel the writer typed
  2. 2 after Seen or Sad
  3. 3 before a final Teh Marbuta, Heh or Dal
  4. 4 before a final Alef, Tah, Lam, Kaf or Gaf
  5. 5 before a medial Beh that comes before Reh or Yeh
  6. 6 before a final Waw, Ain, Qaf or Feh
  7. 7 before the final form of any other letter