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.

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:

\documentclass{article}
\usepackage[no-math]{fontspec}
\usepackage[tracking,letterspace=500]{microtype}
\begin{document}\parindent0em

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

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

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.

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

2 Answers 2

up vote 5 down vote accepted

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).

share|improve this answer
    
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
\documentclass{article}
\usepackage[no-math]{fontspec}
\fontspec[SmallCapsFont={LinLibertineCapitalsO},
          SmallCapsFeatures={Letters=SmallCaps}]{Linux Libertine O}
\usepackage[tracking,letterspace=500]{microtype}
\begin{document}\parindent0em

stealing sheap

\textsc{Stealing Sheep}

\textls[800]{\scshape Stealing Sheep}

\end{document}

enter image description here

share|improve this answer
    
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 –  Herbert 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 ... –  Herbert Sep 5 '11 at 19:11

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.