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:
parent
606c83e484
commit
4e389d77e1
@ -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();
|
||||
|
||||
|
BIN
sdrgui/resources/LiberationMono-Regular.ttf
Normal file
BIN
sdrgui/resources/LiberationMono-Regular.ttf
Normal file
Binary file not shown.
BIN
sdrgui/resources/LiberationSans-Regular.ttf
Normal file
BIN
sdrgui/resources/LiberationSans-Regular.ttf
Normal file
Binary file not shown.
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user