I try to get microtype's tracking working but without success: up-to-date TeXlive 2011 (lualatex 0.70.1) with microtype v2.5 beta 07. Sample code:


\fontspec[SmallCapsFont={Latin Modern Roman Caps}]{Latin Modern Roman}
\textsc{stealing sheep}

\fontspec{Linux Libertine O}
\textsc{stealing sheep}

Latin Modern works fine (letterspaced small caps) but not Libertine (letterspaced lowercase letters). The only difference between both fonts is that Latin Modern has small caps in a separate file. Any ideas how I could get the same working for Libertine? The following does not work, however:

\fontspec[SmallCapsFont={Linux Libertine O}]{Linux Libertine O}

Nor does:

\fontspec[SmallCapsFont={Linux Libertine O},SmallCapsFeatures={Letters=SmallCaps}]{Linux Libertine O}

Any suggestions are very welcome.

Edit: the following does work (with side effects, see below):

\fontspec[Renderer=Basic]{Linux Libertine O}

2nd edit: See related question.

  • i.imgur.com/1YZff.png – felixvictor Sep 5 '11 at 15:16
  • possible duplicate of textls breaks smallcaps with luatex – ℝaphink Sep 5 '11 at 16:26
  • I have seen the post but the answer it related to the truetype version of Libertine. I would like to use opentype fonts (see also my comment to Herbert's answer). – felixvictor Sep 5 '11 at 16:43
  • My question related to the OTF version of Linux Libertine. Afaik, TrueType and OTF fonts are dealt the same way with XeTeX and LuaTeX. Furthermore, ttf files can actually have OpenType features. – ℝaphink Sep 5 '11 at 19:20
  • The solution proposed is to assign 'SmallCapsFont' with 'fooC' where 'fooC' is an opentype font with small caps instead of lowercase characters (see my remarks below). – felixvictor Sep 5 '11 at 19:28

This is due to a bug (or, if one were more polite: incompatibility) in luatex. I've just reported it on the luatex list.

Edit: ... and I got an answer, persuading me to be more polite, indeed - it's not a bug but microtype's using a legacy command.

The simple solution is: load the fonts with Renderer=Basic (side effects are yet to be discovered).

  • Thanks, Robert. I hope they can find the time to fix it. – felixvictor Sep 6 '11 at 8:22
  • 3
    I found two side effects of Renderer=Basic sofar: TeX ligatures and letterspaced small caps italics do not work. – felixvictor Sep 7 '11 at 8:40
  • To note a further side effect, spacing of numbers is incorrect. It looks like proportional numbers revert to monospaced. – D.S. Mar 19 '13 at 13:43
  • 1
    I can extent the proportional number side effect. If I don't specify Renderer=Basic the body of my text is all good with Numbers={Oldstyle, Proportional} but inside any \textls and \lsstyle commands numbers change to proportional lining numbers. If I do specify Renderer=Basic then all numbers in the document are set lining and proportional. If I remove the Proportional option when loading my typeface then everything works but all numbers are typeset monospaced. – tmgriffiths Sep 9 '15 at 2:48
          SmallCapsFeatures={Letters=SmallCaps}]{Linux Libertine O}

stealing sheap

\textsc{Stealing Sheep}

\textls[800]{\scshape Stealing Sheep}


enter image description here

  • Thanks for the answer, Herbert. However, I do not have a font 'LinLibertineCapitalsO' (separate fonts with small caps) but rather 'Linux Libertine O' including small caps (opentype 'smcp' feature, font stored in texlive/2011/texmf-dist/fonts/opentype/public/libertine/fxlr.otf). I think, I have got a regular TeXlive2011 distribution. – felixvictor Sep 5 '11 at 16:38
  • While reading Raphink's comment above: Just to confirm that I would like the tracking function working with opentype fonts. – felixvictor Sep 5 '11 at 16:46
  • then use the name Linux Libertine C. I do not use the open type fonts from TeXLive, I have the ones from sourceforge installed – user2478 Sep 5 '11 at 17:34
  • Sourceforge does provide a font 'LinLibertineCapitalsO'. Still, this is not what I am looking for. I would like to use the small caps feature of an opentype font. I used Libertine in the sample code as it is a public font for anybody to test. But in my 'real-life' text I would like to use GaramondPremierPro, for example. It does not provide a separate small caps font file but rather the smcp feature. – felixvictor Sep 5 '11 at 19:08
  • what do you think what kind of font I used?? It is the OpenType one ... – user2478 Sep 5 '11 at 19:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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