Hi Hans

Thanks for the code so that we can use fonts in Plain and LaTeX.

I just had two questions

1- I got the code from Khaled. How can I get the beta myself from your repository? I just joined ConTeXt mailing list.

2- Your code works fine but if in LaTeX, I compile a document like
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%

\documentclass{article}

\pagedir TRT \bodydir TRT \pardir TRT \textdir TRT

\directlua {

dofile(kpse.find_file("luatex-fonts.lua","tex"))

}

\font\body=file:XBZar.ttf:mode=node;script=arab;language=ara;+init;+medi;+fina;+liga;+rlig;+mark;+mkmk at 14pt

\def\normalfont{\body}

\AtBeginDocument{\body}

\begin{document}

این یک آزمایش است که در حال وقوع است.

\section{مقدمه}

\end{document}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


Then it gives this error


! LuaTeX error /home/vafa/texmf/tex/luatex-fonts/font-def.lua:337: attempt to c

all field 'read_from_afm' (a nil value).

<to be read again>

relax

l.16 \section{مقدمه}

?

Do you know how I can resolve this issue. The issue is when you use \section and similarly when you use \chapter, \textbf, \begin{....}  \end{.....}


If I can resolve this, Then I will be writting a LaTeX interface for the fonts.