I have noticed that default kerning of hyphenated words (like "Finite-Valued") looks like this:
e-V
As you can see, the hyphen is too close to the e
and too far away from the V
. Is there a way to fix this, so the hyphen has proper kerning?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityThe \kern
primitive is your friend.
\documentclass{article}
\begin{document}
Finite-Valued
Finite\kern0.5pt-\kern-2ptV\kern-1.5ptalued % 1 postive kern, 2 negative kerns
\end{document}
-V
glyph pair is so unusual as not to have been considered to be a realistic possibility, by whoever created the font's kerning table. That said, I doubt that any font truly has a truly complete kerning table, i.e., one that considers all possible character pairs.
If you are using LuaTeX then you can declare more kerning pairs of used fonts. Example shows how to do it in OpTeX:
\fontfam[lm]
\directlua
{fonts.handlers.otf.addfeature
{
name = "khv",
type = "kern",
data = {
["-"] = { ["V"] = -150},
}
}
}
Finite-Valued.
\setff{khv}\rm Finite-Valued.
\bye
Finite-\!Valued