2

I am using xepersian and XB Niloofar font to produce Farsi documents. When enabling [Kashida] option, although XB Niloofar has the kashida (U+0640) glyph, I get a fuzzy output. Any solution?

\documentclass[12pt]{article}
\usepackage[Kashida]{xepersian}
\settextfont[Scale=1]{XB Niloofar}
\setdigitfont[Scale=1]{XB Niloofar}
\setlatintextfont[Scale=0.9]{Junicode}

\begin{document}
سلام، من هر روز به مدرسه می‌روم. 
بایستی به قدری بنویسم که تراز کردن 
اتفاق بیفتد و از کشیده استفاده شود. 
این کشــــــــیــــــــــده است؟
\end{document}
1
1

XePersian seems to be inserting a horizontal rule not the kashida glyph regardless of the presence or absence of kashida in the font used (that what I see from the code).

Rules are rendered slightly differently from actual glyphs, which results in the fuzziness you see.

3
  • This option works fine with "Adobe Arabic" or "Scheherazade" fonts. Check here. – Mohammad Hedayati Dec 14 '11 at 11:52
  • 1
    I'd say the documentation is wrong, or I didn't understand it, since I tested with several fonts including Adobe Arabic and Scheherazade, and a rule is always used. With Adobe Arabic it is even more broken as there are wide gaps around the inserted rule. – Khaled Hosny Dec 14 '11 at 12:24
  • @MohammadHedayati Link is broken. (Time does that to everything.) – Cicada Mar 14 '20 at 0:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.