I am actually using the fancyvrb package to have verbatim environments with working commands inside. I am also using the cmun.ttf font (computer modern unicode font), with XeTeX.
When I am using this font without verbatim environment, I have the good one curly apostrophe (’) (U+2019, ou U+02BC).
But, in fancyvrb verbatim environment, of course, I don't have them, but the typewriter one (').
How could I set the curly one as variant for the straight one automatically for verbatim environments ?
\documentclass[9pt]{report}
\usepackage{fontspec, fancyvrb}
\setmainfont{cmun} %what you want MONO font
\DefineVerbatimEnvironment{VRB}{Verbatim}{commandchars=\\\{\}}
\begin{document}
\begin{VRB}
J'écris en \emph{français}.
\end{VRB}
\end{document}
upquote
package. I can't try it since I don't have your fonts.