TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I really like the protrusion and margin kerning features of pdfTeX and LuaTeX. I also like to use other fonts than those available for TeX. What choices do I have when I want to use both? Also, what problems with typography should I expect?

share|improve this question
Regarding 'expansion', IMO it's way too easy to confuse that with macro expansion. – Giel Aug 9 '10 at 12:51
tags added, using font-expansion – Taco Hoekwater Aug 9 '10 at 13:06
up vote 6 down vote accepted

This is for lualatex:


\setmainfont[RawFeature={protrusion=default}]{TeX Gyre Pagella}

\pdfprotrudechars2 % 1 if you don't want to change line breaking

share|improve this answer

XeTeX has recently been enhanced with microtypography extensions as well, but it's still in a beta phase.

share|improve this answer
The version of XeTeX in TeXlive 2010 testing supports this, right? Do you need to load the microtype package? – frabjous Aug 9 '10 at 16:27

I’ve recently converted a few OTF fonts using otdtotfm (LY1 encoding) and written a corresponding .fd file; then a few more imports to get the font selection done and the thing worked very well together with pdftex and microtype. Some protrusion is applied (though I don’t know if it’s ‘perfect’ – whatever that would mean) – in fact there are much, much less overfull boxes than without microtype.

So if one cannot rely on the very latest additions to lua- or xetex and a small subset of characters is all right (though one can of course create as many fonts as to cover the whole character range of the original OTF file) this seems to be a valid option.

share|improve this answer

LuaTeX supports both. I'm not sure about the state of Lua in LaTeX, but you can already do it in ConTeXt.

This is how I did it:

\setmainfont[Fontin Sans]
\setsansfont[Fontin Sans]
share|improve this answer
Not related to the question, but for document wide setup, it is better to use \setupbodyfont rather that \switchtobodyfont. – Aditya Aug 10 '10 at 15:43

Your Answer


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.