Title: JustyKhatt: A Script-Agnostic DOM-Level Line Justification Engine
Hello everyone,
I have developed a JavaScript library called JustyKhatt, which performs line justification at the DOM layer (in the browser) by leveraging OpenType and Variable Font capabilities.
While my initial focus has been on the Arabic script, the architecture is intentionally script-agnostic. The codebase separates the generic processing Core from independent Rule Packs. The Core handles measurement, tagging, and rendering, while Rule Packs (e.g., Naskh, Nastaliq) contain the specific calligraphic logic and decision-making for each script.
The architecture documentation (ARCHITECTURE.md) and the full source code are available here:
https://github.com/AzizMohseny/FFB/tree/main/justykhatt
You can test the behavior of the engine with your own text in the live sandbox here:
[لینک ورسل خود را اینجا بگذارید، مثلاً https://justykhatt.vercel.app]
I would be very grateful if fellow type designers and engineers could test this tool and share their technical feedback. I do not have the financial means to compensate you for your valuable time, but I am more than willing to reciprocate by offering my time, advice, or expertise on your own projects whenever you might need it.
Thank you,
Disclaimer: AI tools were used to assist with the translation and editing of this post.
Comments
-
Safari 26:

0
Categories
- All Categories
- 47 Introductions
- 4K Typeface Design
- 501 Type Design Critiques
- 593 Type Design Software
- 1.1K Type Design Technique & Theory
- 675 Type Business
- 908 Font Technology
- 29 Punchcutting
- 544 Typography
- 129 Type Education
- 333 Type History
- 82 Type Resources
- 114 Lettering and Calligraphy
- 33 Lettering Critiques
- 81 Lettering Technique & Theory
- 580 Announcements
- 101 Events
- 116 Job Postings
- 176 Type Releases
- 186 Miscellaneous News
- 270 About TypeDrawers
- 54 TypeDrawers Announcements
- 114 Suggestions and Bug Reports