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

Khaled Hosny khaledhosny at eglug.org
Wed Apr 8 15:49:24 CEST 2009


On Wed, Apr 08, 2009 at 03:33:27PM +1000, وفا خلیقی wrote:
> 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.

This has something to do with the way LaTeX loads fonts, which I have
absolutely no idea about.

Regards,
 Khaled


-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://tug.org/pipermail/luatex/attachments/20090408/18bd4304/attachment.bin 


More information about the luatex mailing list