# lualatex: smallcaps and microtype don't work together

Compiling the following MWE with lualatex doesn't produce small caps. There are no font warnings.

\documentclass{article}

\usepackage{fontspec}
\newfontfeature{Microtype}{protrusion=default, expansion=default}
\defaultfontfeatures{Microtype}
\setmainfont{Linux Libertine O}

\begin{document}

\textsc{foo} {\scshape bar}

\end{document}


Doing one of the following fixes this:

• Don't add Microtype to fontfeatures
• compile with xelatex

The system is a frozen TL 2011 on Archlinux.

-
Which version of microtype are you using? The official version, 2.4, doesn't do all that much under lualatex. Version 2.5, still in late beta, is a lot more capable. – Mico Jun 27 '12 at 18:51
@Mico the microtype package is not used here, it's LuaTeX own protrusion/expansion features. – Jörg Jun 27 '12 at 19:09
One should nevertheless load microtype it seems. I forgot it in the example and I'm not able to edit the question though. – t-8ch Jun 27 '12 at 19:33
Unless I am very much mistaken there is absolute no point in loading the microtype package in your example. You could use microtype for letterspacing if you add \addfontfeatures{Renderer=Basic}. – Jörg Jun 27 '12 at 22:13

You have a small error in your Microtype syntax.

Change:

\newfontfeature{Microtype}{protrusion=default, expansion=default}% comma


to:

\newfontfeature{Microtype}{protrusion=default;expansion=default}% semicolon


Edit: If you want to use Linux Libertine consider the libertineotf package.

-
This does the trick, thank you very much. PS: I am using libertineotf, but for the sake of the MWE used \setmainfont here – t-8ch Jun 27 '12 at 19:21