### Bug report **Bug summary** Text in PDF files created with the `rcParams["pdf.fonttype"] = 42` setting does not have any kerning. This can lead to text overflowing the legend box. **Code for reproduction** ```python import matplotlib.pyplot as plt from matplotlib import rcParams rcParams["pdf.fonttype"] = 42 plt.plot([0, 1], [0, 1], label="Hello AVATAVATAVATAVATAVATAVAT") plt.legend() plt.savefig("kern42.pdf") ``` **Actual outcome**  [kern42.pdf](https://github.com/matplotlib/matplotlib/files/6792128/kern42.pdf) **Expected outcome**  [kern42.pdf](https://github.com/matplotlib/matplotlib/files/6792123/kern42.pdf) <!--A description of the expected outcome from the code snippet--> <!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--> **Matplotlib version** <!--Please specify your platform and versions of the relevant libraries you are using:--> * Operating system: Debian 11 * Matplotlib version (`import matplotlib; print(matplotlib.__version__)`): 3.4.2 * Matplotlib backend (`print(matplotlib.get_backend())`): TkAgg (PS I assume) * Python version: 3.9.2 * I've installed Matplotlib with pip in a virtualenv
Activity