Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 of 5 tasks
lrkrol opened this issue Aug 19, 2020 · 1 comment
Open
2 of 5 tasks

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

lrkrol opened this issue Aug 19, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@lrkrol
Copy link

lrkrol commented Aug 19, 2020


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

  • Relevant to the bidi package
  • The bidi package issue tracker has been searched for similar issues?
  • Issue tracker has been searched for similar issues?
  • Links to <tex.stackexchange.com> discussion if appropriate
  • Links to <qa.parsilatex.com> discussion if appropriate

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

@lrkrol lrkrol added the bug Something isn't working label Aug 19, 2020
@vafa-khalighi
Copy link

vafa-khalighi commented Feb 3, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants