# [XeTeX] Latin Modern in XeTeX?

Will Robertson will at mecheng.adelaide.edu.au
Thu Jun 10 04:37:42 CEST 2004

Hi

First off, great work with XeTeX so far! I'm quite in awe that it now
supports both ATSUI & OpenType; better than Mac OS X itself.

I'm having some difficulty using the Latin Modern fonts (for comparison
with the otf ones I'm --- slowly! --- still attempting to create). I
assume this is because the tfm files are set up for multiple encodings
and XeTeX doesn't know which one to choose. (I'm not particularly
knowledgeable about the methods TeX uses to select fonts; I only know
the commands!)

------SAMPLE FILE------
%&personallatex
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\setlength{\parindent}{0pt}
\def\pangram{\bigskip{Pack my box with five dozen liquor jugs}\par}
\font\cmrtex=cmr10 at 10pt
\begin{document}
\fbox{LMR10: \pangram}\par
\fbox{\cmrtex CMR10: \pangram}
\end{document}
------END------

Is there something trivial I'm overlooking?
Another phrasing of the question I suppose is:
How I may use the \font command to choose a LM font, since the tfm
files are labelled differently to the pfb files?

Regards,
Will