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.

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.

share|improve this question
    
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
1  
@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

1 Answer 1

up vote 7 down vote accepted

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.

share|improve this answer
    
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

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.