QFontMetricsΒΆ

class PyQt5.QtGui.QFontMetrics

The C++ documentation can be found here.