Expression painter:setfont(qfont) sets the current font. Argument font must be a Qt variant of type qt.QFont.
painter:setfont(qfont)
font
qt.QFont