Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}

enter image description here

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

share|improve this question
2  
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
3  
Update: this bug is fixed in the latest Luatex, version 0.78. –  phg Jan 2 at 0:37
1  
@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
show 3 more comments

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.