# How can I load a true type font in luatex? [duplicate]

Possible Duplicate:
Load fonts that are in a ./fonts directory

I have a TTF file zapf-chancery.ttf in the same folder as my LaTeX document. How do I make this font available in my document?

-

## marked as duplicate by Alan Munn, Leo Liu, lockstep, Caramdir, Matthew LeingangMay 16 '11 at 18:02

do you really mean luatex and not lualatex? –  Herbert May 16 '11 at 14:43
I probably mean lualatex :-) –  Aaron Digulla May 16 '11 at 15:12

you did not wrote how do you want to use the font. Here is an example as a main font:

\listfiles
\documentclass{article}
\usepackage{fontspec}
\setmainfont[Path=/home/voss/]{zapf-chancery.ttf}
\begin{document}
\Huge
foo bar baz

\end{document}


-
That looks promising but do I have to specify the path? I can't expect others to run lualatex in the same folder as I do. –  Aaron Digulla May 16 '11 at 19:58
This answer and tex.stackexchange.com/questions/12565/… pointed me in the right direction. Thanks a lot! –  Aaron Digulla May 16 '11 at 20:00

If you use plain LuaTeX, you can use.

\input luaotfload.sty
\font\1={times.ttf}
\1 Times New Roman
\bye


And you should certainly use fontspec for LuaLaTeX.

-