|
|
@ -154,8 +154,9 @@ class ElectrumQmlApplication(QGuiApplication): |
|
|
|
|
|
|
|
# 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 and |
|
|
|
QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Bold.ttf') < 0): |
|
|
|
not_loaded = QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Regular.ttf') < 0 |
|
|
|
not_loaded = QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Bold.ttf') < 0 and not_loaded |
|
|
|
if not_loaded: |
|
|
|
self.logger.warning('Could not load font PT Mono') |
|
|
|
self.fixedFont = 'Monospace' # hope for the best |
|
|
|
|
|
|
|