# Why does fake slant only seem to work after italics has been used?

Based on this question, can someone explain this behavior:

\documentclass{article}
\usepackage{fontspec}
\setmainfont[
SlantedFont={Linux Libertine O},
SlantedFeatures={FakeSlant=0.30},
BoldSlantedFeatures={FakeSlant=0.30},
]{Linux Libertine O}

\begin{document}
abc \textsl{abc} \textit{abc} \textsl{abc} \textbf{\textsl{abc}}
\end{document}


It seems the fake slant only works after italics has been used. Am I doing something crazy or is this a very subtle bug?

-
The font used in both instances is "LinuxLibertineO:mode=node;script=latn;language=DFLT;slant=0.30;", so I guess it's a bug of luaotfload. The same happens if you repeat the input preceded by, say, \large. –  egreg Sep 20 '13 at 15:23
Confirmed. It’s a bug in the fontloader, see this test file: bitbucket.org/phg/lua-la-tex-tests/src/… –  phg Sep 21 '13 at 12:08
After some testing it appears to be an instance of a known bug in the backend: see tracker.luatex.org/view.php?id=829 and github.com/lualatex/luaotfload/issues/81 . You’ll have to wait for the Luatex people to fix it. –  phg Sep 21 '13 at 12:33
Update: this bug is fixed in the latest Luatex, version 0.78. –  phg Jan 2 at 0:37
@jonalv At the moment you have to compile from source, which is pretty simple, though: 1) get the trunk from SVN foundry.supelec.fr/scm/?group_id=10 , 2) copy the file texmf.cnf from your tex live install to the source/texk/kpathsea directory, 3) in the luatex-trunk directory execute build.sh --parallel, 4) copy the binary from build/texk/web2c/luatex to the texlive bin directory, 5) remake the formats mktexfmt luatex etc., 6) profit. If you don’t have a compiler I’m afraid you are going to have to wait until somebody builds 0.78 for tex live. –  phg Jan 2 at 15:52