[luatex] \font primitive does not read otf file

Ulrike Fischer luatex at nililand.de
Fri Nov 30 11:52:22 CET 2012


Am Wed, 28 Nov 2012 21:03:27 +0100 schrieb Petr Olsak:

> Hello,
> 
> I am starting with LuaTeX and I have problem to find the relevant 
> documentation about \font primitive. There is only one document
> 
>     http://www.luatex.org/talks/print-plain-tug-2009.pdf
> 
> page 7. It seems that the \font primitive works like in XeTeX. 

No, \font works more or less like in pdftex. But there is a
"callback" where you can insert lua-code (a "font-loader") to expand
its capabilities.

One existing font loader is luaotfload so try this:

\input luaotfload.sty
\font\aa="[lmroman10-regular]"
\aa  text
\bye


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the luatex mailing list