I was looking for a new font for the manuals of my LaTeX packages and found the Linux Libertine most pleasing. However it seems that it doesn't support italic correction (yet).
I assume that a font normally defines the correct italic correction for every character, but I would settle if any extra amount would be added after italic text. At the moment a text used in \meta{...}
hits the closing angle symbol because of the missing italic correction:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{libertine}
\begin{document}
(\textit{X})
\def\metastyle{\textit}
\def\meta#1{{\metastyle {\ensuremath \langle #1\/\ensuremath \rangle }}}
\meta{X}
\end{document}
I had the idea of the very quick and very dirty trick \let\/\,
which works in this case, but not for general \textit{...}
uses. (\/
is for explicit italic correction and \,
adds a small space, IIRC half a normal space)
Checking the definition of \textit
revealed that it finally uses \@@italiccorr
which is let to the original \/
primitive.
Defining this macro as well to \,
seems to add the small space also on other places where it is not wanted.
Is there a better way to get some decent italic correction for this font? It doesn't have to be perfect, just better then the current one (i.e. literally "better than nothing").
\,
seems to add the small space also on other places where it is not wanted"?\@@italiccorr
is placed before and after every\textXX
macro, so redefining it to a fixed space is not good.\/
?