From 1f86ed3d85fa8b845ee901f36529e19446248329 Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Fri, 17 Jun 2022 17:48:46 +0200 Subject: Correct font for Windows --- src/qt/mainwindow.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/qt') diff --git a/src/qt/mainwindow.cpp b/src/qt/mainwindow.cpp index 9d1ea85..15e5526 100644 --- a/src/qt/mainwindow.cpp +++ b/src/qt/mainwindow.cpp @@ -13,10 +13,6 @@ #include "./ui_mainwindow.h" #include "workers.hpp" - - -#define FONT "tf2build" - MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) @@ -28,9 +24,9 @@ MainWindow::MainWindow(QWidget *parent) qRegisterMetaType("Task_t"); qRegisterMetaType("Results_t"); - QFontDatabase::addApplicationFont (":/font/assets/" FONT ".ttf"); - QFont playFont(FONT, 20, QFont::Bold); - QFont progressFont(FONT, 10, QFont::Normal); + QFontDatabase::addApplicationFont (":/font/assets/tf2build.ttf"); + QFont playFont("TF2 Build", 20, QFont::Bold); + QFont progressFont("TF2 Build", 10, QFont::Normal); ui->mainButton->setFont(playFont); ui->progressBar->setFont(progressFont); -- cgit v1.2.3