(no commit message)
[paste/584.git] / hidpi.rst
1 HiDPI\r
2 =====\r
3 \r
4 https://forums.puri.sm/t/librem-13-v3-font-size-too-small-or-too-large/3711/3\r
5 \r
6 The librem 13 v3 has 1920x1080 px resolution, on 13". This is "hidpi".\r
7 \r
8 Standard PureOS shipped had much too small fonts and icons.\r
9 \r
10 xpdyinfo reported 96 dpi resolution, which is really wrong. In reality it's 166 dpi.\r
11 \r
12 I told X11 to use the real screen size, and Cinnamon uses this information correctly (KDE, Gnome, Mate, XFCE not)::\r
13 \r
14  $ cat /etc/X11/xorg.conf.d/90-librem-display.conf\r
15  # xdpyinfo | grep -B2 resolution\r
16  # https://wiki.archlinux.org/index.php/xorg#Display_size_and_DPI\r
17  Section "Monitor"\r
18      Identifier   "eDP-1"\r
19      DisplaySize  294 166 # In millimeters\r
20  EndSection\r
21 \r
22 I also had to set "Font scaling factor" in the cinnamon font settings to 1.3\r
23 \r
24 Qt\r
25 --\r
26 \r
27 - http://doc.qt.io/qt-5/highdpi.html\r
28 \r
29  The traditional approach to supporting high DPI has been one where Qt scaled fonts automatically, and then provided a DPI value that application code could use to scale the rest of the UI.\r
30 \r
31 Setting the DPI value manually to a lower values gives better font sizes::\r
32 \r
33  $ QT_FONT_DPI=128 zeal\r
34 \r
35 Maybe the main issue is that Cinnamon pushes the configured font sizes (for Gtk) 1:1 to Qt, probably via the ``QT_QPA_PLATFORMTHEME`` variable.\r
36 \r
37 \r
38 Ding / Tk\r
39 ---------\r
40 \r
41 Edit ding executable, add::\r
42 \r
43     tk scaling 2.0\r