# XeTeX, microtype and fontspec

I am using XeTeX from TL2010 with microtype 2.5 beta and fontspec. My main font is Linux Libertine O. I do not see a single difference with and without including the microtype package.

Am I doing something wrong, is there a better way to optimize character protrusion in XeTeX to get nicer paragraphs and spend less time fixing overfull lines?

This is what I'm doing:

``````% This line doesn't change anything at all
\usepackage[protrusion=true,final]{microtype}
\usepackage{fontspec}
\usepackage{xunicode}
\setmainfont[Mapping=tex-text]{Linux Libertine O}
% other fonts and settings...
``````

The logs do indicate that microtype seems to work:

``````LaTeX Info: Redefining \microtypecontext on input line 54.
Package microtype Info: Character protrusion enabled (level 2).
Package microtype Info: Using default protrusion set `alltext'.
Package microtype Info: No adjustment of tracking.
Package microtype Info: No adjustment of spacing.
Package microtype Info: No adjustment of kerning.
``````

Edit: Actually, protrusion does work properly it seems, but it doesn't seem to help with overfull lines. Does protrusion not help with it, and is it only font expansion that helps with overfull lines?

-
You have to prepare a configuration file; there are examples in the same directory as `microtype.sty` and one for an OpenType font here. –  egreg Jul 3 '11 at 21:06
That's what I feared :-) Can I find an existing configuration file for Linux Libertine anywhere? If not, what are all the numbers and how do I choose/set them? –  ℝaphink Jul 3 '11 at 21:11
Protrusion means that characters like point, hyphen, comma stick a bit in the margin to get a visually more pleasant result. It changes line breaking so it can in some paragraphs improve it (like rewriting a text can improve it). But to improve line breaking in the complete text you need font expansion or you must adjust the hyphenation. –  Ulrike Fischer Jul 4 '11 at 14:39
font expansion is not available in XeTeX –  Ulrike Fischer Jul 4 '11 at 15:00
@Raphink: The only thing that XeTeX does and LuaTeX doesn't is inclusion of PostScript. And the LaTeX support for LuaTeX is a bit behind (most notably polyglossia doesn't work). Otherwise: Yes. –  Martin Schröder Jul 18 '11 at 16:40