wspr/fontspec — Issue #125: AutoFakeSlant fails for normal font possibly due to up-to-date L3 files
Author: ballapete
Created: 2012-02-18 00:02:17+00:00
State: open

On my MacBook with Snow Leopard I have TeX Live 2011 in /usr/local kept up-to-date by tlmgr and another installation from MacPorts in /opt/local – this to satisfy some dependencies in MacPorts, to be able to continue to experiment until I install Mac OS X 10.6 for real.

When I run TL '11 xelatex on my minimal example it stumbles upon this:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! LaTeX error: "keys/key-unknown"
!
! The key 'fontspec/AutoFakeBoldFakeSlant' is unknown and is being ignored.
!
! See the LaTeX3 documentation for further information.
!
! For immediate help type H .
!... help type H \c_msg_hide_tl..........................................................

l.8 \setmainfont[AutoFakeSlant, AutoFakeBold]{Herculanum}

? H
|'''''''''''''''''''''''''''''''''''''''''''''''
| The module 'fontspec' does not have a key called
| fontspec/AutoFakeBoldFakeSlant'.
| Check that you have spelled the key name correctly.
|...............................................
? r
OK, entering \nonstopmode...

The minimal example file is:

\documentclass{minimal}
%
%	Time-stamp: <2012-01-26 00:08:35 peter>
%
\usepackage[no-math]{fontspec}
\XeTeXtracingfonts=1
\defaultfontfeatures{Mapping=tex-text, Renderer=ICU}
\setmainfont[AutoFakeSlant, AutoFakeBold]{Herculanum}
%Duality}	=0.375	=5
%Code2000}
%%FakeBold=2.5,FakeSlant=0.25]{Code2000}
\setmonofont{Lucida Sans Typewriter}

\nofiles
\listfiles
\thispagestyle{empty}

\begin{document}

Normal, \textit{etwas schräg}, \textbf{etwas dicker}, \textbf{\textit{etwas viel schräg}}.

\end{document}

In the output PDF file the text "etwas schräg" is *not* artificially slanted, the artificially bold text is bold, and the artificially bold and slanted text is both. Pdfffonts shows three Herculanum font instances used. When I use /opt/local/bin/xelatex the slanted text portion is slanted and pdffonts shows four Herculanum font instances used.

PDF and LOG files can be supplied.