[texhax] XeLaTeX, fontspec, fontsize, etc.

Peter Davis pfd at pfdstudio.com
Tue Dec 7 04:19:55 CET 2010

I'm debugging a C++ program that reads an XML file and outputs a LaTeX file,
ready for typesetting.  Due to the nature of the XML, there are some
redundant commands in the .tex file, but I don't think they should cause the
weird behavior I'm seeing.  Basically, I use \fontspec{Minion Pro} and
\fontsize{14.000000}{14.000000}. (The \fontsize gets used some extra times,
but always at 14 pts.  However, in the resulting PDF from XeLaTeX (XeTeX,
Version 3.1415926-2.2-0.9997.4 (MiKTeX 2.9)), I get plain text in a small
font, and bold or italic text in what appears to be the correct size.  Can
anyone explain this?  A short snippet is below.

Thank you!




\fontspec{Minion Pro}
{\par   Dear   {  First  }  ,  \null}
{\par \null}
{\par   Are you aware that now is the   {\bfseries
  winter of our discontent  }  ? It?s been made   {\itshape
  glori  }{\itshape
  ous   }{\bfseries
  sum  }{\bfseries
  mer  }  by this son of York.  \null}
{\par \null}
{\par   I say let?s put it back the way it was. Are you with me,   {  Last
 }  ?  \null}
{\par \null}
{\par   Good.  \null}
{\par \null}
{\par   -pd  \null}
{\par \null}
{\par \null}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20101206/4dc44991/attachment.html>

More information about the texhax mailing list