<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_default" style="font-family:arial,sans-serif;font-size:small">... (The default <br>
word spacing in Awami should generally be quite good, especially if you <br>
use the \XeTeXinterwordspaceshaping=1 setting, but I assume it would <br>
still work to adjust it if you wish.)<font color="#888888"><br></font></div></blockquote><div><br></div><div style="font-family:arial,sans-serif;font-size:small" class="gmail_default">The default works well. I'm glad XeTeX and fontspec have options to control word spacing. Some people, including myself, prefer spacing between words for readability as opposed to the true nastaliq enthusiasts who like words kerned together.</div><div style="font-family:arial,sans-serif;font-size:small" class="gmail_default"><br></div><div style="font-family:arial,sans-serif;font-size:small" class="gmail_default">Kamal<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 21, 2021 at 1:30 PM Jonathan Kew <<a href="mailto:jfkthame@gmail.com">jfkthame@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 21/02/2021 14:55, Kamal Abdali wrote:<br>
> Thank you Lorna and Jonathan for solving the problem.<br>
> <br>
> Jonathan, I almost always need fontspec options like <br>
> [Script=Arabic,Scale=xx,WordSpace=yy] because different nastaliq fonts <br>
> seem to have very different letter sizes and word spacing behaviors. <br>
> Moreover, for some reason the Noto Nastaliq Urdu font doesn't connect <br>
> letters if the Script=Arabic option is omitted.<br>
<br>
Noto Nastaliq Urdu is an OpenType font; OpenType requires that the <br>
correct script is specified so that it knows what shaping engine to use. <br>
(There's a default "generic" shaper that is used for Latin & other <br>
simple scripts, so in that case nothing needs to be explicitly <br>
specified, but Arabic and other "complex" scripts require the script to <br>
be specified so that script-specific rules can be applied.)<br>
<br>
Awami Nastaliq is a Graphite font; no script option is required as the <br>
shaping behavior is encoded entirely within the font; the engine is <br>
script-independent.<br>
<br>
So the Script option is not relevant for Awami, but you do need the <br>
Renderer=Graphite option to use the proper font engine. (The default <br>
word spacing in Awami should generally be quite good, especially if you <br>
use the \XeTeXinterwordspaceshaping=1 setting, but I assume it would <br>
still work to adjust it if you wish.)<br>
<br>
JK<br>
<br>
> <br>
> Kamal Abdali<br>
> <br>
> On Sun, Feb 21, 2021 at 5:33 AM Jonathan Kew <<a href="mailto:jfkthame@gmail.com" target="_blank">jfkthame@gmail.com</a> <br>
> <mailto:<a href="mailto:jfkthame@gmail.com" target="_blank">jfkthame@gmail.com</a>>> wrote:<br>
> <br>
>     On 21/02/2021 03:27, Lorna Evans wrote:<br>
>      > Awami Nastaliq is a Graphite font. In XeTeX you would need to say<br>
>     "Awami<br>
>      > Nastaliq/GR". I'm not sure if that syntax would work in XeLaTeX, but<br>
>      > somehow you have to indicate Graphite.<br>
>      ><br>
> <br>
>     The xelatex/fontspec way to say this would be<br>
> <br>
>         \newfontfamily\urdufont[Renderer=Graphite]{Awami Nastaliq}<br>
> <br>
>     (You might also want to add the option<br>
> <br>
>         \XeTeXinterwordspaceshaping=1<br>
> <br>
>     to your document, for better word spacing results.)<br>
> <br>
>     JK<br>
> <br>
>      > On Sat, Feb 20, 2021, 6:24 PM Kamal Abdali <<a href="mailto:kabdali@gmail.com" target="_blank">kabdali@gmail.com</a><br>
>     <mailto:<a href="mailto:kabdali@gmail.com" target="_blank">kabdali@gmail.com</a>><br>
>      > <mailto:<a href="mailto:kabdali@gmail.com" target="_blank">kabdali@gmail.com</a> <mailto:<a href="mailto:kabdali@gmail.com" target="_blank">kabdali@gmail.com</a>>>> wrote:<br>
>      ><br>
>      >     XeLaTeX (in combination with Polyglossia) is not rendering<br>
>     the Awami<br>
>      >     Nastaliq font properly. The letters in this font are being<br>
>     displayed<br>
>      >     without being connected together. I haven't encountered this<br>
>     problem<br>
>      >     with any other nastaleeq font. Nor have I seen this problem when<br>
>      >     using Awami in word processors.<br>
>      ><br>
>      >     %demo.tex<br>
>      >     \documentclass[letterpaper]{article}<br>
>      >     \usepackage{polyglossia}<br>
>      >     \setmainlanguage{urdu}<br>
>      >     \newfontfamily\urdufont[Script=Arabic]{Awami Nastaliq}<br>
>      >     \newfontfamily\altnast[Script=Arabic]{Jameel Noori Nastaleeq}<br>
>     % or<br>
>      >     any other nastaliq font<br>
>      >     \setlength\parindent{0pt}<br>
>      >     \begin{document}<br>
>      >     عوامی نستعلیق\\<br>
>      >     \altnast{جمیل نوری نستعلیق}<br>
>      >     \end{document}<br>
>      ><br>
>      >     demo.pdf attached.<br>
>      ><br>
>      >     Kamal Abdali<br>
>      ><br>
> <br>
<br>
</blockquote></div>