PyQt5.QtGui.
QTextLayout
C++ documentation
QTextItem
QTextLength
Enter search terms or a module, class or function name.