Brief outline of the issue
The Awami Nastaliq font (also attached) requires the Graphite rendering engine to be displayed properly. The font commands provided by XePersian do not appear to allow this to be configured correctly. I am assuming this is not unique to Awami.
Check/indicate
Minimal example showing the issue
% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode
\documentclass{article}
\usepackage[]{xepersian}
\settextfont[Renderer=Graphite]%
{AwamiNastaliq-Regular.ttf}
\newfontfamily\awami[Renderer=Graphite]%
{AwamiNastaliq-Regular.ttf}
\begin{document}
یک دو سه چهار پنخ شش هفت هشت نه ده
\awami
یک دو سه چهار پنخ شش هفت هشت نه ده
\end{document}
Expected behavior
XePersian's settextfont should behave the same as the corresponding fontspec command. However, it produces a warning that the font does not contain the requested Persian script, and does not render the Persian text correctly.
The issue appears to be with the explicit indication of a script---any script. When we add Script=Persian, Script=Arabic, or even Script= to the newfontfamily command, the results are identical to those of XePersian, and the text does not render correctly.
Log and PDF files
xepersian-graphite-awami.pdf
xepersian-graphite-awami.txt
AwamiNastaliq-2.000.zip
Brief outline of the issue
The Awami Nastaliq font (also attached) requires the Graphite rendering engine to be displayed properly. The font commands provided by XePersian do not appear to allow this to be configured correctly. I am assuming this is not unique to Awami.
Check/indicate
bidipackagebidipackage issue tracker has been searched for similar issues?Minimal example showing the issue
Expected behavior
XePersian's
settextfontshould behave the same as the corresponding fontspec command. However, it produces a warning that the font does not contain the requested Persian script, and does not render the Persian text correctly.The issue appears to be with the explicit indication of a script---any script. When we add
Script=Persian,Script=Arabic, or evenScript=to thenewfontfamilycommand, the results are identical to those of XePersian, and the text does not render correctly.Log and PDF files
xepersian-graphite-awami.pdf
xepersian-graphite-awami.txt
AwamiNastaliq-2.000.zip