Work around a difference between PyQt4 and PySide QFont
by always calling setStyle() and setCapitalization() with
arguments defined in the QFont class.