The masses and vertex functions of heavy and heavy-light mesons, described as quark-antiquark bound states, are calculated with the Covariant Spectator Theory (CST). The CST equation is similar to the Bethe-Salpeter equation, an integral equation formulated in Minkowski space with a kernel of two-particle irreducible Feynman diagrams describing the quark-antiquark interaction. Its distinguishing feature is that the relative-energy loop integration is carried out by taking only the residues of the quark propagator poles into account. Cancelations between the omitted kernel pole contributions make sure that the equation has the correct limit when one quark becomes very heavy, which makes it particularly suitable to describe unequal-mass mesons. We use a kernel with an adjustable mixture of Lorentz scalar, pseudoscalar, and vector linear confining interaction, together with a one-gluon-exchange kernel. I will present the results of a series of fits to the heavy and heavy-light meson spectrum, and discuss what conclusions can be drawn from it, especially about the Lorentz structure of the kernel.