وفا خلیقی wrote:
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.
in most cases it's the same as on the website (the ftp is low bandwidth so only used by a few) http://www.pragma-ade.com/context/latest/cont-tmf.zip
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>
indeed, has to do with the fact that (since we use the xetex syntax there) we default to name lookups and those are tagged as afm while luatex-fonts does not have that code (does not make sense) you can try the attached file (probably enough, else i have to send more) as we're in transition to luatex 0.38 i cannot post a zip today (some fundamental math changes) Hans ps. keep in mind that the real advanced stuff with respect to fonts is context only although node mode should work ok in luatex-fonts (add mode=yes to the specification) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------