1

This question already has an answer here:

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Have you seen/tried the solution at How to use OpenType fonts with plain-LuaTeX? – Paul Gessler Jun 26 '15 at 23:51
  • I didn't, so thanks! But both seem to imply the installation of other stuff (ConTeXt or the aforementioned luaotfload.sty); I guess I can survive on one of them but I'm still curious about the "direct" way to do it. – Daniel Lyons Jun 26 '15 at 23:57
  • 3
    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
  • 1
    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

Browse other questions tagged or ask your own question.