QTextCharFormat

class PyQt5.QtGui.QTextCharFormat

C++ documentation