# xelatex myriad pro l with apostrophe issue

I compile my document with xelatex. I use Myriad pro

\setmainfont[Mapping=tex-text]{Myriad Pro}


My problem is that the "l'a" is looking OK but not the "l'i" the i touches the apostrophes. Can someone tell me how to fix this issue?

• The kerning of the apostrophe in Minion Pro and Myriad Pro is known to be bad. :( – egreg May 18 '13 at 13:33
• in pdfTeX, things like this were possible. Let's hope the kerning feature will be back in microtype for Xe/LuaLaTeX someday. – Nils L May 18 '13 at 13:54
• Please see: tex.stackexchange.com/questions/45460/… – morbusg May 18 '13 at 19:35
• It is an ugly solution, but you could manually add kerning... Defining some macros would make it much easier. Alternatively, you could open the font in Fontforge and change the kerning there. It involves some work but it is doable. I am not really sure if it permitted by the fonts license though... – pmav99 May 18 '13 at 21:37
• @all thanks for your your answers. I have another question. Is there any other font very similar to myriad pro that handles better the appostrophes? – S12000 May 19 '13 at 11:37

There is nothing wrong with the font, you can find this out by writing the same thing into another program. It is a issue with ICU engine with XeTeX.

One way to fix it is to issue a zero kern after the apostrophe:

l'\kern0pt inno


Another option would be to use \XeTeXinterchartoks to insert that kern automatically. See this answer on how to do it.

Here's an example as requested:

\documentclass{article}
\usepackage{fontspec}
\XeTeXcharclass ' \aposclass
`