<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Abdulrahman Al-Abdusalalm wrote:<br>
<br>
<br>
<blockquote
 cite="mid:AANLkTilW1OPDqE-EEYmQexVCNT6HAmGIyWnOel2--Szk@mail.gmail.com"
 type="cite">
  <pre wrap="">After running xetex on a document to test a new arabic opentype font I got
a final pdf document with completely mixed up characters (brought from the
wrong codepoints and with wrong positioning). You can inspect the output
in the file attached. The source looks like:

\TeXXeTstate=1
  </pre>
  <blockquote type="cite">
    <pre wrap="">\everypar={\setbox0=\lastbox \beginR \box0 }
%\input testfontavailability
%\font\taha="KFGQPCUthmanTahaNaskh:script=arab" at 14pt
\font\taha="KFGQPCUthmanTahaNaskh"
\taha
%\char"0628\char"0633\char"0645
%\vskip12pt
\centerline{\beginR
��� ���� ������ ������
\endR}
����� ��� �� �������� ������� ������� ��� ���� �������� ����� ���� ����
��� ����� ��������
��� ���
\bye

    </pre>
  </blockquote>
  <pre wrap=""><!---->
I will appreciate any kind suggestions?

  </pre>
</blockquote>
<br>
<br>
Hi Abdulrahman:<br>
<br>
I'm not familiar with using XeTeX, but it looks like you've loaded the
font *without* the script=arab (you have another line commented with
that, but the one you're using doesn't).<br>
<br>
HTH.<br>
<br>
<br>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
United in adoration of Jesus, 



fr. michael gilmary, mma

Most Holy Trinity Monastery
67 Dugway Road
Petersham, MA 01366-9725

<a class="moz-txt-link-abbreviated" href="http://www.MaroniteMonks.org">www.MaroniteMonks.org</a>

</pre>
</body>
</html>