electrum-docs icon indicating copy to clipboard operation
electrum-docs copied to clipboard

Update of FAQ related to characters size

Open ser opened this issue 3 years ago • 2 comments

That receipt should work on most of GNU/Linux distributions.

ser avatar Aug 10 '22 01:08 ser

Thanks. Documenting the issue is one approach, but ideally we should try to fix the software so that it works out of the box.

Could you open an issue in the main repo with some screenshots of how the application looks for you, and also, could you try with this patch?

diff --git a/electrum/gui/qt/__init__.py b/electrum/gui/qt/__init__.py
index 3290833019..a922da9074 100644
--- a/electrum/gui/qt/__init__.py
+++ b/electrum/gui/qt/__init__.py
@@ -124,6 +124,8 @@ class ElectrumGui(BaseElectrumGui, Logger):
             QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_ShareOpenGLContexts)
         if hasattr(QGuiApplication, 'setDesktopFileName'):
             QGuiApplication.setDesktopFileName('electrum.desktop')
+        if hasattr(QtCore.Qt, "AA_EnableHighDpiScaling"):
+            QtCore.QCoreApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
         self.gui_thread = threading.current_thread()
         self.windows = []  # type: List[ElectrumWindow]
         self.efilter = OpenFileEventFilter(self.windows)

(I guess it is similar to setting the QT_AUTO_SCREEN_SCALE_FACTOR=1 env var?)

SomberNight avatar Aug 10 '22 03:08 SomberNight

The patch works correctly setting QT_AUTO_SCREEN_SCALE_FACTOR.

But how to change font size if it's not ideal? I mean QT_FONT_DPI - maybe we can leave that part in the FAQ - as current patch will satisfy 90% of users.

ser avatar Aug 10 '22 03:08 ser