Thank you Lorna and Jonathan for solving the problem. Jonathan, I almost always need fontspec options like [Script=Arabic,Scale=xx,WordSpace=yy] because different nastaliq fonts seem to have very different letter sizes and word spacing behaviors. Moreover, for some reason the Noto Nastaliq Urdu font doesn't connect letters if the Script=Arabic option is omitted.
Kamal Abdali On Sun, Feb 21, 2021 at 5:33 AM Jonathan Kew <jfkth...@gmail.com> wrote: > On 21/02/2021 03:27, Lorna Evans wrote: > > Awami Nastaliq is a Graphite font. In XeTeX you would need to say "Awami > > Nastaliq/GR". I'm not sure if that syntax would work in XeLaTeX, but > > somehow you have to indicate Graphite. > > > > The xelatex/fontspec way to say this would be > > \newfontfamily\urdufont[Renderer=Graphite]{Awami Nastaliq} > > (You might also want to add the option > > \XeTeXinterwordspaceshaping=1 > > to your document, for better word spacing results.) > > JK > > > On Sat, Feb 20, 2021, 6:24 PM Kamal Abdali <kabd...@gmail.com > > <mailto:kabd...@gmail.com>> wrote: > > > > XeLaTeX (in combination with Polyglossia) is not rendering the Awami > > Nastaliq font properly. The letters in this font are being displayed > > without being connected together. I haven't encountered this problem > > with any other nastaleeq font. Nor have I seen this problem when > > using Awami in word processors. > > > > %demo.tex > > \documentclass[letterpaper]{article} > > \usepackage{polyglossia} > > \setmainlanguage{urdu} > > \newfontfamily\urdufont[Script=Arabic]{Awami Nastaliq} > > \newfontfamily\altnast[Script=Arabic]{Jameel Noori Nastaleeq} % or > > any other nastaliq font > > \setlength\parindent{0pt} > > \begin{document} > > عوامی نستعلیق\\ > > \altnast{جمیل نوری نستعلیق} > > \end{document} > > > > demo.pdf attached. > > > > Kamal Abdali > > > >