diff --git a/electrum/gui/qml/fonts/PTMono-Bold.ttf b/electrum/gui/qml/fonts/PTMono-Bold.ttf new file mode 100644 index 000000000..b1a145e0e Binary files /dev/null and b/electrum/gui/qml/fonts/PTMono-Bold.ttf differ diff --git a/electrum/gui/qml/fonts/PTMono-Regular.ttf.LICENSE b/electrum/gui/qml/fonts/PTMono.LICENSE similarity index 100% rename from electrum/gui/qml/fonts/PTMono-Regular.ttf.LICENSE rename to electrum/gui/qml/fonts/PTMono.LICENSE diff --git a/electrum/gui/qml/qeapp.py b/electrum/gui/qml/qeapp.py index d97765340..850573523 100644 --- a/electrum/gui/qml/qeapp.py +++ b/electrum/gui/qml/qeapp.py @@ -40,11 +40,11 @@ class ElectrumQmlApplication(QGuiApplication): self.engine.addImageProvider('qrgen', self.qr_ip) # add a monospace font as we can't rely on device having one + self.fixedFont = 'PT Mono' if QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Regular.ttf') < 0: - self.logger.warning('Could not load font PTMono-Regular.ttf') - self.fixedFont = 'Monospace' # hope for the best - else: - self.fixedFont = 'PT Mono' + if QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Bold.ttf') < 0: + self.logger.warning('Could not load font PT Mono') + self.fixedFont = 'Monospace' # hope for the best self.context = self.engine.rootContext() self._singletons['config'] = QEConfig(config)