mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
Qt: Use better method of getting default monospace font
This should give us a nicer font on Windows, while also not severely impacting the existing behavior on Linux.
This commit is contained in:
parent
4f1f849c9d
commit
0759ead9b6
2 changed files with 3 additions and 4 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <QDir>
|
||||
#include <QFile>
|
||||
#include <QFileInfo>
|
||||
#include <QFontDatabase>
|
||||
#include <QSize>
|
||||
|
||||
#include "AudioCommon/AudioCommon.h"
|
||||
|
@ -489,8 +490,7 @@ void Settings::SetDebugFont(QFont font)
|
|||
|
||||
QFont Settings::GetDebugFont() const
|
||||
{
|
||||
QFont default_font = QFont(QStringLiteral("Monospace"));
|
||||
default_font.setStyleHint(QFont::TypeWriter);
|
||||
QFont default_font = QFont(QFontDatabase::systemFont(QFontDatabase::FixedFont).family());
|
||||
|
||||
return GetQSettings().value(QStringLiteral("debugger/font"), default_font).value<QFont>();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue