|
@ -154,10 +154,11 @@ class ElectrumQmlApplication(QGuiApplication): |
|
|
|
|
|
|
|
|
# add a monospace font as we can't rely on device having one |
|
|
# add a monospace font as we can't rely on device having one |
|
|
self.fixedFont = 'PT Mono' |
|
|
self.fixedFont = 'PT Mono' |
|
|
if (QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Regular.ttf') < 0 and |
|
|
not_loaded = QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Regular.ttf') < 0 |
|
|
QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Bold.ttf') < 0): |
|
|
not_loaded = QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Bold.ttf') < 0 and not_loaded |
|
|
self.logger.warning('Could not load font PT Mono') |
|
|
if not_loaded: |
|
|
self.fixedFont = 'Monospace' # hope for the best |
|
|
self.logger.warning('Could not load font PT Mono') |
|
|
|
|
|
self.fixedFont = 'Monospace' # hope for the best |
|
|
|
|
|
|
|
|
self.context = self.engine.rootContext() |
|
|
self.context = self.engine.rootContext() |
|
|
self._qeconfig = QEConfig(config) |
|
|
self._qeconfig = QEConfig(config) |
|
|