In XeTeX, I can set up a font pretty straightforwardly with:

``````\font\foo="Minion Pro" at 10pt
``````

I don't quite see how to do it. This question suggests that the answer is "use luaotfload.sty." Is that true or is there something comparable to the above I can do directly in LuaTeX? Or is there some other, better plain-ish TeX way of loading fonts (by which I mean system fonts in TTF or OTF format) from LuaTeX?

Looking at the LuaTeX manual, I see some Lua code. If that's the right way to do it from LuaTeX directly, which functions do I need to use to do this?

## marked as duplicate by Joseph Wright♦Jun 27 '15 at 8:49

• As explained in egreg's answer, `luaotfload.sty` is the "direct" way to do it. `luatex` does not extend `pdftex`'s font handling natively, so the extra Lua code is required. – Paul Gessler Jun 27 '15 at 0:01
• Find a copy of `luaotfload.sty` (e.g. on CTAN), copy the contents and paste into your document. Would that count as more 'direct'? – cfr Jun 27 '15 at 0:31
• I take it `luaotfload.sty` is custom Lua code that does the work that XeTeX does, then? I assumed it wrapped some lower level font handling, either Lua primitives or TeX primitives. – Daniel Lyons Jun 27 '15 at 0:42