# [Tex/LaTex] How to use standard TeX fonts in XeLaTeX

fontspectimesxetex

How do I use the inbuilt LaTeX standard fonts (in this case Times for roman, Helvetica for sans serif and Courier for mono) when using XeLaTeX and fontspec?

I have tried:

\documentclass[journal, a4paper]{IEEEtran}

\usepackage{fontspec}
\renewcommand\rmdefault{ptm}
\renewcommand\sfdefault{phv}
\renewcommand\ttdefault{pcr}

\begin{document}
“Touché,” \textsf{he} \texttt{said}.
\end{document}


without success. Note that I want to be able to type utf8, non-English characters directly and therefore I use fontspec.

The document @Sverre wrote, but with LuaLaTeX gives a correct output. However, as @UlrikeFischer said, it seems to be “wrong” in many ways.

%!TEX TS-program = lualatex
\documentclass{article}
\usepackage[utf8]{luainputenc}
\usepackage[T1]{fontenc}
\usepackage{mathptmx} % Times font
\usepackage{helvet} % Helvetica font
\usepackage{courier} % Courier font
\begin{document}
“Touché,” \textsf{he} \texttt{said}
\end{document}


EDIT:

If you want to be able to compile in pdfLaTeX without changing input you can

\usepackage{ifluatex}
\usepackage[utf8]{\ifluatex lua\fi inputenc}


PS: I added the fontenc package that I missed before, and the document seems to work the same way as with OT1.