[XeTeX] problems with some fonts

Joachim Trinkwitz jtr at uni-bonn.de
Tue Jul 27 16:56:56 CEST 2010


Am 23.07.2010 um 11:21 schrieb Ernest Adrogué:

> I use this:
> 
> \documentclass{article}
> \usepackage{xunicode}
> \usepackage{xltxtra}
> \usepackage{fontspec}
> \begin{document}
> \setmainfont{Fontin}
> \large
> \begin{tabbing}
> xxxxxxxxxxxxxxxxx \= \kill
> 
> Aa Ee Rr Bb				\> {\itshape Aa Ee Rr Bb} \\
> Gg Jj \& ?				\> {\itshape Gg Jj \& ?}  \\
> \textbf{Aa Ee Rr Bb}	\> \textbf{\itshape Aa Ee Rr Bb} \\
> \textbf{Gg Jj \& ?}		\> \textbf{\itshape Gg Jj \& ?}  \\
> \textsc{Aa Ee Rr Bb}	\> \textsc{\itshape Aa Ee Rr Bb} \\
> \textsc{Gg Jj \& ?}		\> \textsc{\itshape Gg Jj \& ?}
> \end{tabbing}
> \end{document}

Some hints: it is fully sufficient to load the package xltxtra, it will automatically load fontspec and xunicode by itself.

\setmainfont should be in the preamble. As XeLaTeX expects small caps to be in the main font, you will have more luck if you declare it as follows:

\documentclass{article}
\usepackage{xltxtra}
\setmainfont[SmallCapsFont={Fontin-SmallCaps}]{Fontin}
 
But alas, there will be neither some bold italics nor small caps italics, because Fontin doesn't have such shapes.

Joachim

-- 
Dr. Joachim Trinkwitz     E-Mail: jtr at uni-bonn.de
Institut für Germanistik, Tel.: 0228-737565
Vergleichende Literatur-  Fax: 0228-737479
und Kulturwissenschaft    www.germanistik.uni-bonn.de
der Universität Bonn      53012 Bonn





More information about the XeTeX mailing list