1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Try to add fonts to GUI resources and add to font database from main window

This commit is contained in:
f4exb 2018-05-07 03:14:18 +02:00
parent 606c83e484
commit 4e389d77e1
4 changed files with 10 additions and 0 deletions

View File

@ -27,6 +27,7 @@
#include <QSysInfo>
#include <QKeyEvent>
#include <QResource>
#include <QFontDatabase>
#include <plugin/plugininstancegui.h>
#include <plugin/plugininstancegui.h>
@ -101,6 +102,13 @@ MainWindow::MainWindow(qtwebapp::LoggerWithFile *logger, const MainParser& parse
m_instance = this;
m_settings.setAudioDeviceManager(m_dspEngine->getAudioDeviceManager());
QFontDatabase::addApplicationFont(":/LiberationSans-Regular.ttf");
QFontDatabase::addApplicationFont(":/LiberationMono-Regular.ttf");
QFont font("Liberation Sans");
font.setPointSize(9);
qApp->setFont(font);
ui->setupUi(this);
createStatusBar();

Binary file not shown.

Binary file not shown.

View File

@ -93,5 +93,7 @@
<file>load.png</file>
<file>keyboard.png</file>
<file>kill.png</file>
<file>LiberationMono-Regular.ttf</file>
<file>LiberationSans-Regular.ttf</file>
</qresource>
</RCC>