persiantex / xepersian

Persian for LaTeX, using XeTeX
https://ctan.org/pkg/xepersian
76 stars 3 forks source link

Graphite-rendered font (Awami) not loaded correctly #23

Open lrkrol opened 4 years ago

lrkrol commented 4 years ago

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

vafa-khalighi commented 2 years ago

I sincerely apologize for being very slow and get to this issue quite late. I have fixed this in the development version; the official version is planned to be released on CTAN on February 27.

Please also note that I had to move the GitHub repository to a new place. The new repository can be found here. If you have reported any issues in the old repository, there is no need to re-report it in the new one but for the new issues, please kindly use the new repository.

There is also a Discussions section on the new repository which you can use to ask questions that need my attention. The announcements for future versions of the xepersian package also will appear in Discussions under Announcements.

Finally, if you ever need to contact me directly, you can find my email address in the PDF documentation on the second title page.