I'm trying to fix the kerning around the quote with a feature file. I looked at several answer and tried this one:
\documentclass[12pt]{article}
\usepackage[french]{babel}
\usepackage{filecontents,fontspec,microtype}
\begin{filecontents*}{minion.fea}
languagesystem DFLT dflt;
languagesystem latn dflt;
feature kern {
pos \quoteright \a 40;
pos \quoteright \eacute 10;
pos \quoteright \o 10;
pos \quoteright \e 8000;
} kern;
\end{filecontents*}
\setmainfont{MinionPro-Regular}[
FeatureFile={minion.fea},Path=fonts/]
\frenchspacing
\begin{document}
l’étranger
d’accord
d’ores et déjà
L'e
\end{document}
It doesn't change the kerning

it's particulary bad with a "L". Any tips ?
I'm using Miktex 2.9
Thank you
Edit: Using the suggestion in comment
\documentclass[12pt]{article}
\usepackage[french]{babel}
\usepackage{filecontents,fontspec,microtype}
\directlua{
fonts.handlers.otf.addfeature {
name = "ktest",
{
type = "kern",
data = {
["quoteright"] = { ["e"] = 50,
["a"] = 50,
["eacute"] = 50,
["o"] = 50, },
}
},
"extra kerns"
}
}
\setmainfont{MinionPro-Regular}[
RawFeature=+ktest,
Path=fonts/]
\frenchspacing
\begin{document}
l’étranger
d’accord
d’ores et déjà
L'e
\end{document}

logfile.) – Mico Sep 07 '16 at 21:44luatex; see Ulrike’s answer at https://tex.stackexchange.com/a/312160/7883 for the new approach. – Thérèse Sep 07 '16 at 23:05