Browse Source

add PT Mono bold

patch-4
Sander van Grieken 3 years ago
parent
commit
16a2d0c7fb
  1. BIN
      electrum/gui/qml/fonts/PTMono-Bold.ttf
  2. 0
      electrum/gui/qml/fonts/PTMono.LICENSE
  3. 8
      electrum/gui/qml/qeapp.py

BIN
electrum/gui/qml/fonts/PTMono-Bold.ttf

Binary file not shown.

0
electrum/gui/qml/fonts/PTMono-Regular.ttf.LICENSE → electrum/gui/qml/fonts/PTMono.LICENSE

8
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)

Loading…
Cancel
Save