It was labeled the Diwani script because it was used in the Ottoman diwan and was one of the secrets of the sultan's palace. The rules of this script were not known to everyone, but confined to its masters and a few bright students. It was used in the writing of all royal decrees, endowments, and resolutions.
The Diwani script is divided into two types:
1. The Riq`a Diwani style, which is devoid of any decorations and whose lines are straight, except for the lower parts of the letters.
2. The Jeli Diwani or clear style. This kind of handwriting is distinguished by the intertwining of its letters and its straight lines from top to bottom. It is punctuated and decorated to appear as one piece. The Diwani handwriting is known for the intertwining of its letters, which makes it very difficult to read or write, and difficult to forge.