[luatex] otf fonts (ligatures, cache, etc.)

وفا خلیقی vafakh9 at gmail.com
Wed Apr 8 07:33:27 CEST 2009


In LaTeX, if you use the code in 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 when you have \section in it, LuaTeX gives error and that is




! 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{مقدمه}

 ?



but if you write just normal texts without using any CS, then there is no
error.



I will write an interface for handling fonts in LaTeX very soon provided
these kind of issues can be fade away.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/luatex/attachments/20090408/a12c612c/attachment.html 


More information about the luatex mailing list