SYNERGY-936 Arial font

This commit is contained in:
Serhii Hadzhilov 2021-04-30 13:46:59 +03:00
parent 96a120b583
commit 01e2331101
3 changed files with 6 additions and 0 deletions

View file

@ -21,5 +21,6 @@
<file>icons/64x64/synergy-light-connected.png</file> <file>icons/64x64/synergy-light-connected.png</file>
<file>image/welcome.png</file> <file>image/welcome.png</file>
<file>icons/64x64/folder.png</file> <file>icons/64x64/folder.png</file>
<file>fonts/Arial.ttf</file>
</qresource> </qresource>
</RCC> </RCC>

BIN
src/gui/res/fonts/Arial.ttf Normal file

Binary file not shown.

View file

@ -29,6 +29,11 @@ QSynergyApplication::QSynergyApplication(int& argc, char** argv) :
m_Translator(NULL) m_Translator(NULL)
{ {
s_Instance = this; s_Instance = this;
QFontDatabase::addApplicationFont(":/res/fonts/Arial.ttf");
QFont Arial("Arial", 13);
Arial.setStyleHint(QFont::Monospace);
setFont(Arial);
} }
QSynergyApplication::~QSynergyApplication() QSynergyApplication::~QSynergyApplication()