Set font for windows

Apparently the new symbols used are not present in Dejavu fonts.

However they should be present in Cambria, which should be shipped
by default on windows.
master
Salvo 'LtWorf' Tomaselli 2015-06-04 22:30:39 +07:00
parent f76c1bf3e2
commit bae0d482a2
2 changed files with 8 additions and 2 deletions

@ -103,8 +103,14 @@ if __name__ == "__main__":
ui = maingui.Ui_MainWindow()
form = guihandler.relForm(ui)
ui.setupUi(form)
if sys.platform.startswith('win'):
winFont = 'Cambria'
ui.lstHistory.setFont(QtGui.QFont(winFont))
ui.txtMultiQuery.setFont(QtGui.QFont(winFont))
ui.txtQuery.setFont(QtGui.QFont(winFont))
ui.groupOperators.setFont(QtGui.QFont(winFont))
form.restore_settings()
m = enumerate(map(os.path.isfile, files))

@ -47,7 +47,7 @@
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_4">
<widget class="QGroupBox" name="groupOperators">
<property name="title">
<string>Operators</string>
</property>