Expression qfont:tostring() returns a string representation of the font settings that is suitable for storing in configuration files for instance. Use qt.QFont(string) to reconstruct the corresponding font object.
qfont:tostring()
qt.QFont(string)