# 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? – user2478 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}


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.