add PT Mono bold
This commit is contained in:
BIN
electrum/gui/qml/fonts/PTMono-Bold.ttf
Normal file
BIN
electrum/gui/qml/fonts/PTMono-Bold.ttf
Normal file
Binary file not shown.
@@ -40,11 +40,11 @@ class ElectrumQmlApplication(QGuiApplication):
|
|||||||
self.engine.addImageProvider('qrgen', self.qr_ip)
|
self.engine.addImageProvider('qrgen', self.qr_ip)
|
||||||
|
|
||||||
# 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'
|
||||||
if QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Regular.ttf') < 0:
|
if QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Regular.ttf') < 0:
|
||||||
self.logger.warning('Could not load font PTMono-Regular.ttf')
|
if QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Bold.ttf') < 0:
|
||||||
self.fixedFont = 'Monospace' # hope for the best
|
self.logger.warning('Could not load font PT Mono')
|
||||||
else:
|
self.fixedFont = 'Monospace' # hope for the best
|
||||||
self.fixedFont = 'PT Mono'
|
|
||||||
|
|
||||||
self.context = self.engine.rootContext()
|
self.context = self.engine.rootContext()
|
||||||
self._singletons['config'] = QEConfig(config)
|
self._singletons['config'] = QEConfig(config)
|
||||||
|
|||||||
Reference in New Issue
Block a user