summaryrefslogtreecommitdiff
path: root/client/pracro.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/pracro.cc')
-rw-r--r--client/pracro.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/pracro.cc b/client/pracro.cc
index 37b1399..bb2d952 100644
--- a/client/pracro.cc
+++ b/client/pracro.cc
@@ -34,6 +34,9 @@
#include <QTranslator>
+#include <QFontDatabase>
+#include <QFont>
+
#include "netcom.h"
#include "mainwindow.h"
#include "viewer.h"
@@ -50,6 +53,8 @@ QString config = CONFIG_DEFAULT;
QString host;
quint16 port;
+QFont *fixedfont;
+
static void print_usage()
{
printf("Usage: pracro -m MACRO -c CPR -U USER\n");
@@ -159,6 +164,11 @@ int main(int argc, char *argv[])
app.installTranslator(&translator);
}
+ QFontDatabase fontdb;
+ fontdb.addApplicationFont(":fonts/VeraMono.ttf");
+ QFont f = fontdb.font("Bitstream Vera Sans Mono", "", 8);
+ fixedfont = &f;
+
if(show_editor && show_viewer) {
MainWindow mainwindow(cpr, templ, host, port, user);
mainwindow.show();