aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-02-21 20:12:02 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-02-21 21:01:03 +0200
commit623de12d040af89ff7c25de6eb0a19c67179dc5f (patch)
treecb672667ca2897d2c9ef18c282d53fa8a067109d /src
parent89e421918ee8b9c8439317f747e5c37f0733d94b (diff)
qt: Make GUIUtil::fixedPitchFont aware of embedded font
Diffstat (limited to 'src')
-rw-r--r--src/qt/guiutil.cpp5
-rw-r--r--src/qt/guiutil.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp
index 0c2bbe9516..baf3484aa8 100644
--- a/src/qt/guiutil.cpp
+++ b/src/qt/guiutil.cpp
@@ -78,8 +78,11 @@ QString dateTimeStr(qint64 nTime)
return dateTimeStr(QDateTime::fromTime_t((qint32)nTime));
}
-QFont fixedPitchFont()
+QFont fixedPitchFont(bool use_embedded_font)
{
+ if (use_embedded_font) {
+ return {"Roboto Mono"};
+ }
return QFontDatabase::systemFont(QFontDatabase::FixedFont);
}
diff --git a/src/qt/guiutil.h b/src/qt/guiutil.h
index 9fb108dff9..d8f766e495 100644
--- a/src/qt/guiutil.h
+++ b/src/qt/guiutil.h
@@ -53,7 +53,7 @@ namespace GUIUtil
QString dateTimeStr(qint64 nTime);
// Return a monospace font
- QFont fixedPitchFont();
+ QFont fixedPitchFont(bool use_embedded_font = false);
// Set up widget for address
void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent);