I have been trying to no avail to make the Urdu font Awami Nastaliq work in xelatex (TexLive 2017). What am I doing wrong? The following example doesn't even produce a pdf. I get the error "Error 256 (driver return code) generating output; file Awami.pdf may not be valid," although I get no warning that it hasn't found Awami or is having problems with the font.
The comments show that others are not having this problem. I have installed TL2017 portable on Manjaro 17.0.5 and Xubuntu 16.04, but it seems to make no difference.
\documentclass[12pt]{memoir}
\usepackage{fontspec}
\setmainfont[AutoFakeBold=2.0,Script=Arabic,Scale=1, WordSpace=6,Renderer=Graphite]{Awami Nastaliq}
\usepackage[RTLdocument,extrafootnotefeatures]{bidi}
\begin{document}
بر صغیر پاک و ہند کے اکثر علاقوں میں بولی اور سمجھی جانے والی زبان جس کے لغات میں پراکرت نیز غیر پراکرت، دیسی لفظوں کے ساتھ ساتھ عربی فارسی ترکی اور کچھ یورپی زبانوں کے الفاظ بھی شامل ہیں اور جس کی قواعد میں عہد بہ عہد تصرفات اور مقامی اختلافات کے باوجود آریائی اثر غالب ہے۔ (ابتداءً ہندوی یا ہندی کے نام سے متعارف رہی۔ ابتدا یا آغاز کے بارے میں مختلف نظریات ہیں : بعض لوگ سورسینی یا اب بھرنش کی جدید ترقی یافتہ یا ترمیم شدہ شکل بتاتے ہیں جس نے عہد غزنوی کے لگ بھگ نیا روپ نکالنا شروع کیا اور جو تقریباً چودھویں صدی سے ضبط تحریر میں آئی۔ منظوم اردو کو ریختہ کہتے تھے۔
\end{document}
Script=Arabicfrom your example.fontspeccomplains that the font doesn’t contain the Arabic script. – Thérèse Oct 31 '17 at 15:51bidi? – Thérèse Oct 31 '17 at 16:05