When I manually colorize the capitals of words the kerning breaks. Is there a way to preserve this without manually adding in negative spaces?
{\color{red}W}{onder}
Wonder
When I manually colorize the capitals of words the kerning breaks. Is there a way to preserve this without manually adding in negative spaces?
{\color{red}W}{onder}
Wonder
Compiling your document with LuaLaTeX instead of pdfLaTeX and loading the luacolor package solves the kerning issue.
If you need to load the xcolor package as well, you should load xcolor before luacolor. E.g., if you need to load xcolor with the option table, you should run \usepackage[table]{xcolor} before running \usepackage{luacolor}.
% !TEX TS-program = lualatex
\documentclass{article}
\usepackage{luacolor}
\begin{document}
\begin{tabular}{ll}
\verb+{\color{red}W}onder+ & {\color{red}W}onder \\
\verb+\textcolor{red}{W}onder+ & \textcolor{red}{W}onder \\
\verb+Wonder+ & Wonder \\
\end{tabular}
\end{document}